[Pkg-owncloud-commits] [owncloud-client] 70/121: Fix a QAction leak (#5008)

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Jul 28 15:31:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 446e7cbd930ce8043e2cb9274161292b2a383e1e
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date:   Mon Jun 27 16:22:51 2016 +0200

    Fix a QAction leak (#5008)
    
    Attach the accout menu QAction to the menu rather than the
    ownCloudGui since it should be destroyed when the context
    menu is cleared.
---
 src/gui/owncloudgui.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp
index 12f6838..26ef134 100644
--- a/src/gui/owncloudgui.cpp
+++ b/src/gui/owncloudgui.cpp
@@ -367,7 +367,7 @@ void ownCloudGui::addAccountContextMenu(AccountStatePtr accountState, QMenu *men
             menu->addAction(tr("Managed Folders:"))->setDisabled(true);
         }
 
-        QAction *action = new QAction( tr("Open folder '%1'").arg(folder->shortGuiLocalPath()), this );
+        QAction *action = new QAction( tr("Open folder '%1'").arg(folder->shortGuiLocalPath()), menu );
         connect(action, SIGNAL(triggered()),_folderOpenActionMapper, SLOT(map()));
         _folderOpenActionMapper->setMapping( action, folder->alias() );
         menu->addAction(action);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list