]> git.sur5r.net Git - minitube/commitdiff
Fixed potential crash
authorFlavio <flavio@odisseo.local>
Tue, 1 Feb 2011 00:42:23 +0000 (01:42 +0100)
committerFlavio <flavio@odisseo.local>
Tue, 1 Feb 2011 00:42:23 +0000 (01:42 +0100)
src/thlibrary/thblackbar.cpp

index 6ea1b893f9d727624286c130fefcc64abfd642bd..993f80256aff0e4966eb3a787bba737f70237819 100644 (file)
@@ -148,7 +148,7 @@ void THBlackBar::mousePressEvent (QMouseEvent *event) {
 
 void THBlackBar::leaveEvent(QEvent *event) {
     // status tip
-    QMainWindow* mainWindow = static_cast<QMainWindow*>(window());
+    QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(window());
     if (mainWindow) mainWindow->statusBar()->clearMessage();
 }