From 823477acf579a0c3333d61fbf6400ad49155da5c Mon Sep 17 00:00:00 2001 From: Alexander von Renteln Date: Fri, 9 May 2008 12:19:28 +0000 Subject: [PATCH] bugfix - qactions from the contextmenu will now be destructed --- src/uisupport/bufferview.cpp | 16 ++++++++-------- version.inc | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index 87e474ba..c0e85ad0 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -277,17 +277,17 @@ void BufferView::showContextMenu(const QPoint &pos) { QModelIndex index = indexAt(pos); if(!index.isValid()) return; QMenu contextMenu(this); - QAction *connectNetAction = new QAction(tr("Connect"), this); - QAction *disconnectNetAction = new QAction(tr("Disconnect"), this); - QAction *joinChannelAction = new QAction(tr("Join Channel"), this); + QAction *connectNetAction = contextMenu.addAction(tr("Connect")); + QAction *disconnectNetAction = contextMenu.addAction(tr("Disconnect")); + QAction *joinChannelAction = contextMenu.addAction(tr("Join Channel")); - QAction *joinBufferAction = new QAction(tr("Join"), this); - QAction *partBufferAction = new QAction(tr("Part"), this); - QAction *hideBufferAction = new QAction(tr("Remove buffers"), this); + QAction *joinBufferAction = contextMenu.addAction(tr("Join")); + QAction *partBufferAction = contextMenu.addAction(tr("Part")); + QAction *hideBufferAction = contextMenu.addAction(tr("Remove buffers")); hideBufferAction->setToolTip(tr("Removes the selected buffers from a custom view but leaves the buffer itself untouched")); - QAction *removeBufferAction = new QAction(tr("Delete buffer"), this); + QAction *removeBufferAction = contextMenu.addAction(tr("Delete buffer")); - QMenu *hideEventsMenu = new QMenu(tr("Hide Events"), this); + QMenu *hideEventsMenu = contextMenu.addMenu(tr("Hide Events")); QAction *hideJoinAction = hideEventsMenu->addAction(tr("Join Events")); QAction *hidePartAction = hideEventsMenu->addAction(tr("Part Events")); QAction *hideKillAction = hideEventsMenu->addAction(tr("Kill Events")); diff --git a/version.inc b/version.inc index 0241bdea..b2d5dbac 100644 --- a/version.inc +++ b/version.inc @@ -4,8 +4,8 @@ { using namespace Global; quasselVersion = "0.2.0-beta1-pre"; - quasselDate = "2008-05-08"; - quasselBuild = 821; + quasselDate = "2008-05-09"; + quasselBuild = 824; //! Minimum client build number the core needs clientBuildNeeded = 731; -- 2.20.1