Bug 319170

Summary: Actions are executed twice, and/or on wrong wallet
Product: [Applications] kwalletmanager Reporter: Christoph Feck <cfeck>
Component: generalAssignee: Valentin Rusu <valir>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christoph Feck 2013-05-01 13:21:58 UTC
The UI rewrite in master branch has the following regression.

Steps to reproduce:
- select "Import XML..." menu item
- click Cancel on file dialog

Actual results:
- the file dialog appears again for a second time

Expected results:
- it should not appear again

This is caused by KWalletEditor::showEvent() calling connectActions(), then later KWalletEditor::setWallet() calling connectActions() again (confirmed by removing the code in showEvent).

The other issue is that disconnectActions() is only called in hideEvent(), but not in setWallet() when connecting to a different wallet.

Steps to reproduce:
- open two wallets
- switch between them
- Select "New Folder" in context menu once

Actual results:
- the "Enter folder name" dialog appears multiple times
- folders are created in both wallets
Comment 1 Valentin Rusu 2013-05-01 13:26:26 UTC
I also noticed this and planned to correct it asap.
Comment 2 Valentin Rusu 2013-05-01 13:47:06 UTC
Git commit 3c982e8aae7260ae86a15185809de23ff276aa64 by Valentin Rusu.
Committed on 01/05/2013 at 15:46.
Pushed by vrusu into branch 'master'.

Fix misbehavior due to multiple action connections

M  +3    -2    src/manager/kwalleteditor.cpp

http://commits.kde.org/kwallet/3c982e8aae7260ae86a15185809de23ff276aa64