mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Make configuration check reusable.
Instead of passing a parameter to decide if a dialog box should be shown pass a pointer to the parent widget and make it static. This allows calling it from outside while keeping the possibility to not show a warning. Change-Id: I72fa53a7e8a83d527c22b698dfa434c24100ac29
This commit is contained in:
parent
9acd70288d
commit
3933afcc09
2 changed files with 19 additions and 19 deletions
|
|
@ -40,6 +40,7 @@ class RbUtilQt : public QMainWindow
|
|||
public:
|
||||
RbUtilQt(QWidget *parent = 0);
|
||||
static QList<QTranslator*> translators;
|
||||
static bool chkConfig(QWidget *parent = 0);
|
||||
|
||||
private:
|
||||
Ui::RbUtilQtFrm ui;
|
||||
|
|
@ -58,7 +59,6 @@ class RbUtilQt : public QMainWindow
|
|||
ProgressLoggerGui *logger;
|
||||
ZipInstaller *installer;
|
||||
QUrl proxy(void);
|
||||
bool chkConfig(bool);
|
||||
|
||||
volatile bool m_installed;
|
||||
volatile bool m_error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue