From e449a899018bea4ccf4c099b12b0af9ec2536c63 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Fri, 22 Jan 2010 20:32:48 +0100 Subject: [PATCH] Fixed status tips --- src/thlibrary/thblackbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5