fix style of lobby chatroom user context menu 0.9.16
authorsheepluva
Sat, 17 Sep 2011 19:43:45 +0200
branch0.9.16
changeset 5953 57af6f3abf4a
parent 5951 dc36638a6b7c
child 5956 39d8cdee4391
fix style of lobby chatroom user context menu
QTfrontend/chatwidget.cpp
--- 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();