Merge branch 'master' into google
[mdictionary] / trunk / src / base / gui / MainWindow.cpp
index 5179780..aa48cc2 100644 (file)
@@ -332,7 +332,7 @@ void MainWindow::showNotify(Notify::NotifyType type, QString text) {
     switch(type) {
     case Notify::Info:
         #ifdef Q_WS_MAEMO_5
-            QMaemo5InformationBox::information(this,
+            QMaemo5InformationBox::information(0,
                                 text,
                                 QMaemo5InformationBox::DefaultTimeout);
         #else
@@ -344,13 +344,11 @@ void MainWindow::showNotify(Notify::NotifyType type, QString text) {
         #ifndef Q_WS_MAEMO_5
                 QMessageBox::warning(this, "Warning", text);
                 break;
-        #else
-            QMessageBox::information(this, "Warning", text);
         #endif
 
     case Notify::Error:
         #ifdef Q_WS_MAEMO_5
-            QMaemo5InformationBox::information(this,
+            QMaemo5InformationBox::information(0,
                                 text,
                                 QMaemo5InformationBox::NoTimeout);
         #else