From: Flavio Tordini Date: Tue, 6 Apr 2010 15:17:08 +0000 (+0200) Subject: Fixed status tips for the sort bar X-Git-Tag: 1.0~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c5f7cb114bcc598ad9f91e5f70fea75f8e140fe3;p=minitube Fixed status tips for the sort bar --- diff --git a/src/thlibrary/thblackbar.cpp b/src/thlibrary/thblackbar.cpp index bacd6ce..0043fc5 100644 --- a/src/thlibrary/thblackbar.cpp +++ b/src/thlibrary/thblackbar.cpp @@ -121,7 +121,7 @@ void THBlackBar::mouseMoveEvent (QMouseEvent *event) { update(); // status tip - QMainWindow* mainWindow = dynamic_cast(qApp->topLevelWidgets().first()); + QMainWindow* mainWindow = dynamic_cast(window()); if (mainWindow) mainWindow->statusBar()->showMessage(action->statusTip()); } }