Commit d65a518b authored by Laurent Montel's avatar Laurent Montel 😁

Fix return value

parent 00f388b0
...@@ -48,5 +48,6 @@ int main( int argc, char **argv ) ...@@ -48,5 +48,6 @@ int main( int argc, char **argv )
KGlobal::locale()->insertCatalog( QLatin1String("libpimcommon") ); KGlobal::locale()->insertCatalog( QLatin1String("libpimcommon") );
SieveEditorMainWindow *mw = new SieveEditorMainWindow(); SieveEditorMainWindow *mw = new SieveEditorMainWindow();
mw->show(); mw->show();
a.exec(); int val = a.exec();
return val;
} }
...@@ -45,7 +45,7 @@ SieveEditorMainWindow::SieveEditorMainWindow() ...@@ -45,7 +45,7 @@ SieveEditorMainWindow::SieveEditorMainWindow()
: KXmlGuiWindow(), : KXmlGuiWindow(),
mNetworkIsDown(false) mNetworkIsDown(false)
{ {
mMainWidget = new SieveEditorCentralWidget; mMainWidget = new SieveEditorCentralWidget(this);
connect(mMainWidget, SIGNAL(configureClicked()), SLOT(slotConfigure())); connect(mMainWidget, SIGNAL(configureClicked()), SLOT(slotConfigure()));
connect(mMainWidget->sieveEditorMainWidget(), SIGNAL(updateButtons(bool,bool,bool,bool)), this, SLOT(slotUpdateButtons(bool,bool,bool,bool))); connect(mMainWidget->sieveEditorMainWidget(), SIGNAL(updateButtons(bool,bool,bool,bool)), this, SLOT(slotUpdateButtons(bool,bool,bool,bool)));
setCentralWidget(mMainWidget); setCentralWidget(mMainWidget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment