From kde-devel Tue Oct 26 17:11:54 2004 From: Dracula007 Date: Tue, 26 Oct 2004 17:11:54 +0000 To: kde-devel Subject: Re[2]: PopupMenu pops up repeatedly Message-Id: <378728500.20041026191154 () karneval ! cz> X-MARC-Message: https://marc.info/?l=kde-devel&m=109881081309689 >> contextmenu->popup(p); KK> The line above is too much, remove it >> contextmenu->insertItem( "&Delete row",0,0 ); >> contextmenu->exec(); KK> You can use the point p as a parameter for exec() instead. Thanks, but this didn't solve the problem - the menu is still there no matter how I click. I've tried to show a simple dialog box instead of the menu - I've connected the KListView's "contextMenu" signal to the following slot void MainWindow::showMenu (KListView *l, QListViewItem *i, const QPoint &p) { KMessageBox::information(this,i18n("aaaa")); } but it's the same - once I click on the "OK" button the dialog box closes but a new one is shown immediately. T.V. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<