From: Flavio Tordini Date: Thu, 25 Jun 2009 15:00:48 +0000 (+0200) Subject: Fixed status bar messages X-Git-Tag: 0.4~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22a2f98838b652d39de89f216e4d4d0d783d5370;p=minitube Fixed status bar messages --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 397e0eb..806a0f7 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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; diff --git a/src/networkaccess.cpp b/src/networkaccess.cpp index b48d14a..6032074 100644 --- a/src/networkaccess.cpp +++ b/src/networkaccess.cpp @@ -148,7 +148,7 @@ void NetworkAccess::error(QNetworkReply::NetworkError code) { QMainWindow* mainWindow = dynamic_cast(qApp->topLevelWidgets().first()); if (mainWindow) mainWindow->statusBar()->showMessage(networkReply->errorString()); - qDebug() << "Network error" << networkReply->errorString() << code; + qDebug() << "Network error" << networkReply->errorString() << code;\ networkReply->deleteLater(); }