]> git.sur5r.net Git - minitube/commitdiff
Fixed status tips for the sort bar
authorFlavio Tordini <flavio.tordini@gmail.com>
Tue, 6 Apr 2010 15:17:08 +0000 (17:17 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Tue, 6 Apr 2010 15:17:08 +0000 (17:17 +0200)
src/thlibrary/thblackbar.cpp

index bacd6ce8b1ffc5e3ab623c789c8a047aa6467325..0043fc57c54db995ab4910d62d21915382feae3d 100644 (file)
@@ -121,7 +121,7 @@ void THBlackBar::mouseMoveEvent (QMouseEvent *event) {
         update();
 
         // status tip
-        QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(qApp->topLevelWidgets().first());
+        QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(window());
         if (mainWindow) mainWindow->statusBar()->showMessage(action->statusTip());
     }
 }