Pass a parent to the message box so it gets centered on the mainwindow

svn path=/trunk/KDE/kdepim/; revision=438849
wilder-work
Thomas Zander 21 years ago
parent 26169c8cbb
commit 537192d3a8
  1. 4
      kmkernel.cpp

@ -1128,7 +1128,7 @@ bool KMKernel::askToGoOnline()
{
if ( kmkernel->isOffline() ) {
int rc =
KMessageBox::questionYesNo( 0,
KMessageBox::questionYesNo( KMKernel::self()->mainWin(),
i18n("KMail is currently in offline mode. "
"How do you want to proceed?"),
i18n("Online/Offline"),
@ -1139,7 +1139,7 @@ bool KMKernel::askToGoOnline()
return false;
} else {
kmkernel->resumeNetworkJobs();
}
}
}
return true;
}

Loading…
Cancel
Save