From: Flavio Date: Tue, 1 Feb 2011 00:42:23 +0000 (+0100) Subject: Fixed potential crash X-Git-Tag: 1.4~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b204d49ca129a7fed24a71339442d74245ae10f;p=minitube Fixed potential crash --- diff --git a/src/thlibrary/thblackbar.cpp b/src/thlibrary/thblackbar.cpp index 6ea1b89..993f802 100644 --- a/src/thlibrary/thblackbar.cpp +++ b/src/thlibrary/thblackbar.cpp @@ -148,7 +148,7 @@ void THBlackBar::mousePressEvent (QMouseEvent *event) { void THBlackBar::leaveEvent(QEvent *event) { // status tip - QMainWindow* mainWindow = static_cast(window()); + QMainWindow* mainWindow = dynamic_cast(window()); if (mainWindow) mainWindow->statusBar()->clearMessage(); }