Bug 275121 - Only ask for digital briefcase password if SQL plugin is used
Summary: Only ask for digital briefcase password if SQL plugin is used
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 15:31 UTC by Kai Uwe Broulik
Modified: 2011-06-13 18:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2011-06-07 15:31:40 UTC
Version:           unspecified (using KDE 4.6.3) 
OS:                Linux

I really like that SQL plugin and I frequently use it but if you just want to edit some file quickly it gets annoying since it opens a popup for the briefcase everytime you open Kate then.
Ask for the briefcase password first if the SQL plug-in is used, i. e. if the user clicks on “Run query” or so.

Reproducible: Always
Comment 1 Marco Mentasti 2011-06-10 17:41:38 UTC
Thanks for the report, i'll look into this issue.
Meanwhile, if you don't want to get annoyed by kwallet, you can:
1) change kwallet preferences to keep your wallet open after the first time
2) in Kate->Plugins->SQL uncheck 'Save and restore connetions in kate sessions'
Comment 2 Kai Uwe Broulik 2011-06-10 17:51:25 UTC
I know how I would configure KWallet ;) And it is set to be kept open all the time but on my notebook in contrast to my main machine I do not have messenger and Mail set to auto launch, so when I hack on my notebook Kate is normally the first application I open and then Kwallet prompts ;)
Comment 3 Marco Mentasti 2011-06-13 18:51:55 UTC
Git commit e1ed1ab929ca56c4bdd55867a2808dc352f645f3 by Marco Mentasti.
Committed on 13/06/2011 at 16:58.
Pushed by mentasti into branch 'master'.

SQL-Plugin: ask for kwallet password only if SQL connection is used

Now, for connections restored from session, password is not requested opening kate but only when connection is used (eg. execute a query).
Before querying, the connection will remain in an "idle" state, notified by a new icon in the combo-box placed in the toolbar.

FEATURE: 275121

M  +9    -1    kate/plugins/katesql/connection.h
M  +26   -5    kate/plugins/katesql/connectionmodel.cpp
M  +5    -4    kate/plugins/katesql/connectionmodel.h
M  +0    -7    kate/plugins/katesql/connectionwizard.cpp
M  +33   -35   kate/plugins/katesql/sqlmanager.cpp
M  +1    -1    kate/plugins/katesql/sqlmanager.h

http://commits.kde.org/kate/e1ed1ab929ca56c4bdd55867a2808dc352f645f3