mirror of
https://github.com/QuasarApp/installer-framework.git
synced 2025-05-21 09:09:33 +00:00
Keep the dialog on the heap to see actual setting changes.
This commit is contained in:
parent
e7e57db90a
commit
6978a2469e
@ -54,6 +54,7 @@ using namespace QInstallerCreator;
|
||||
|
||||
MainWindow::MainWindow(const QStringList &args, QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
, m_dialog(new UpdateSettingsDialog(this))
|
||||
, m_installer(new Installer(QInstaller::MagicUpdaterMarker))
|
||||
{
|
||||
QInstaller::init();
|
||||
@ -82,9 +83,8 @@ MainWindow::MainWindow(const QStringList &args, QWidget *parent)
|
||||
|
||||
void MainWindow::editUpdateSettings()
|
||||
{
|
||||
UpdateSettingsDialog dialog(this);
|
||||
connect(&dialog, SIGNAL(checkForUpdates()), this, SLOT(checkForUpdates()));
|
||||
dialog.exec();
|
||||
connect(m_dialog, SIGNAL(checkForUpdates()), this, SLOT(checkForUpdates()));
|
||||
m_dialog->show();
|
||||
}
|
||||
|
||||
void MainWindow::checkForUpdates()
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <QtGui/QMainWindow>
|
||||
|
||||
class UpdateSettingsDialog;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
@ -47,7 +48,9 @@ private Q_SLOTS:
|
||||
void updatesAvailable();
|
||||
|
||||
private:
|
||||
KDUpdater::Application updaterapp;
|
||||
UpdateSettingsDialog *m_dialog;
|
||||
QInstaller::Installer *m_installer;
|
||||
|
||||
KDUpdater::Application updaterapp;
|
||||
QInstaller::InstallerSettings m_settings;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user