-rw-r--r-- | noncore/settings/netsystemtime/ntp.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index 111f7d4..6e74e32 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp | |||
@@ -177,10 +177,11 @@ void Ntp::ntpFinished(OProcess *p) | |||
177 | if (p->exitStatus()!=0 || !p->normalExit()) | 177 | if (p->exitStatus()!=0 || !p->normalExit()) |
178 | { | 178 | { |
179 | QMessageBox::critical(this, tr("ntp error"), | 179 | if ( isVisible() ) { |
180 | QMessageBox::critical(this, tr("ntp error"), | ||
180 | tr("Error while getting time form\n server")+ | 181 | tr("Error while getting time form\n server")+ |
181 | getNtpServer()+"\n"+ | 182 | getNtpServer()+"\n"+ |
182 | _ntpOutput ); | 183 | _ntpOutput ); |
183 | // TabWidgetMain->setCurrentPage( 1 ); | 184 | TabWidgetMain->showPage( tabManualSetTime ); |
184 | TabWidgetMain->showPage( tabManualSetTime ); | 185 | } |
185 | 186 | ||
186 | return; | 187 | return; |