From b0195ae4ac50c38992b4ccf9440a5a65b8a65ec4 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Wed, 4 Feb 2015 10:41:53 +0100 Subject: [PATCH] make sure snoresettings exits --- src/settings/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/settings/main.cpp b/src/settings/main.cpp index 28a9e7c..8714ec2 100644 --- a/src/settings/main.cpp +++ b/src/settings/main.cpp @@ -12,15 +12,14 @@ int main(int argc, char *argv[]) app.setApplicationName("SnoreSettings"); app.setOrganizationName("SnoreNotify"); app.setApplicationVersion(Snore::Version::version()); - app.setQuitOnLastWindowClosed(true); Snore::SnoreCore &snore = Snore::SnoreCore::instance(); snore.loadPlugins(Snore::SnorePlugin::ALL); Snore::SettingsDialog diag; -// diag.setWindowIcon(QIcon(":/root/snore.png")); diag.setWindowTitle("SnoreSettings"); diag.show(); + QObject::connect(&diag,&Snore::SettingsDialog::finished,&app,&QApplication::quit); return app.exec(); }