QTfrontend/chatwidget.cpp
branch0.9.16
changeset 5953 57af6f3abf4a
parent 5772 c09c50efe8b5
child 5990 578978418fe5
--- a/QTfrontend/chatwidget.cpp	Sat Sep 17 16:20:54 2011 +0400
+++ b/QTfrontend/chatwidget.cpp	Sat Sep 17 19:43:45 2011 +0200
@@ -203,7 +203,7 @@
         QList<QListWidgetItem *> items = chatNicks->findItems(nick, Qt::MatchExactly);
         if (items.size() < 1)
             return;
-        QMenu * popup = new QMenu();
+        QMenu * popup = new QMenu(this);
         // selecting an item will automatically scroll there, so let's save old position
         QScrollBar * scrollBar = chatNicks->verticalScrollBar();
         int oldScrollPos = scrollBar->sliderPosition();