Launch accountwizard on firstrun of the mainwidget

If the accountwizard is launched from kmmainwin it is only
    launched when KMail is running standalone and not as a plugin
    in Kontact for example.
    By moving this code into the mainwidget the accountwizard is
    always started on the first run of KMail regardless if it
    is started standalone or as a plugin.
wilder-work
Andre Heinecke 15 years ago
parent 051bd2f024
commit db023a6080
  1. 3
      kmmainwidget.cpp
  2. 4
      kmmainwin.cpp

@ -301,6 +301,9 @@ K_GLOBAL_STATIC( KMMainWidget::PtrList, theMainWidgetList )
restoreCollectionFolderViewConfig();
if ( kmkernel->firstStart() ) {
KMail::Util::launchAccountWizard( this );
}
// must be the last line of the constructor:
mStartupDone = true;
}

@ -86,10 +86,6 @@ KMMainWin::KMMainWin(QWidget *)
connect( mKMMainWidget, SIGNAL( captionChangeRequest(const QString&) ),
SLOT( setCaption(const QString&) ) );
if ( kmkernel->firstStart() )
{
KMail::Util::launchAccountWizard( this );
}
if ( kmkernel->firstInstance() )
QTimer::singleShot( 200, this, SLOT( slotShowTipOnStart() ) );
}

Loading…
Cancel
Save