]> git.sur5r.net Git - minitube/commitdiff
Fixed status bar messages
authorFlavio Tordini <flavio.tordini@gmail.com>
Thu, 25 Jun 2009 15:00:48 +0000 (17:00 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Thu, 25 Jun 2009 15:00:48 +0000 (17:00 +0200)
src/MainWindow.cpp
src/networkaccess.cpp

index 397e0eb58b732a912cab8332af4a2f08b8cba97d..806a0f75ae481636e517661b9d9fb3f98d06d9a3 100755 (executable)
@@ -318,7 +318,8 @@ void MainWindow::showWidget ( QWidget* widget ) {
         if (windowTitle.length())
             windowTitle += " - ";
         setWindowTitle(windowTitle + Constants::APP_NAME);
-        setStatusTip(metadata.value("description").toString());
+        statusBar()->showMessage((metadata.value("description").toString()));
+
     }
 
     // backAct->setEnabled(history->size() > 1);
@@ -407,9 +408,9 @@ void MainWindow::stateChanged(Phonon::State newState, Phonon::State /* oldState
 
          case Phonon::ErrorState:
         if (mediaObject->errorType() == Phonon::FatalError) {
-            setStatusTip("Something went REALLY wrong: " + mediaObject->errorString());
+            statusBar()->showMessage(tr("Fatal error: %1").arg(mediaObject->errorString()));
         } else {
-            setStatusTip("Something went wrong: " + mediaObject->errorString());
+            statusBar()->showMessage(tr("Error: %1").arg(mediaObject->errorString()));
         }
         break;
 
index b48d14a5374a1da225f1c8941a968899907927f7..6032074e30543bcf9f01808236224e6f3b6277af 100644 (file)
@@ -148,7 +148,7 @@ void NetworkAccess::error(QNetworkReply::NetworkError code) {
     QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(qApp->topLevelWidgets().first());
     if (mainWindow) mainWindow->statusBar()->showMessage(networkReply->errorString());
 
-    qDebug() << "Network error" << networkReply->errorString() << code;
+    qDebug() << "Network error" << networkReply->errorString() << code;\
     networkReply->deleteLater();
 }