--- 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();