From: Flavio Tordini Date: Fri, 22 Jan 2010 19:32:48 +0000 (+0100) Subject: Fixed status tips X-Git-Tag: 0.9~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e449a899018bea4ccf4c099b12b0af9ec2536c63;p=minitube Fixed status tips --- diff --git a/src/thlibrary/thblackbar.cpp b/src/thlibrary/thblackbar.cpp index ae2c564..bacd6ce 100644 --- a/src/thlibrary/thblackbar.cpp +++ b/src/thlibrary/thblackbar.cpp @@ -147,7 +147,7 @@ void THBlackBar::mousePressEvent (QMouseEvent *event) { void THBlackBar::leaveEvent(QEvent *event) { // status tip - QMainWindow* mainWindow = dynamic_cast(qApp->topLevelWidgets().first()); + QMainWindow* mainWindow = static_cast(window()); if (mainWindow) mainWindow->statusBar()->clearMessage(); }