]> git.sur5r.net Git - minitube/commitdiff
Fixed status tips
authorFlavio Tordini <flavio.tordini@gmail.com>
Fri, 22 Jan 2010 19:32:48 +0000 (20:32 +0100)
committerFlavio Tordini <flavio.tordini@gmail.com>
Fri, 22 Jan 2010 19:32:48 +0000 (20:32 +0100)
src/thlibrary/thblackbar.cpp

index ae2c564cc4bf1ebfb75f2ee1b858f15d6b5b225c..bacd6ce8b1ffc5e3ab623c789c8a047aa6467325 100644 (file)
@@ -147,7 +147,7 @@ void THBlackBar::mousePressEvent (QMouseEvent *event) {
 
 void THBlackBar::leaveEvent(QEvent *event) {
     // status tip
-    QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(qApp->topLevelWidgets().first());
+    QMainWindow* mainWindow = static_cast<QMainWindow*>(window());
     if (mainWindow) mainWindow->statusBar()->clearMessage();
 }