Felix Geyer
d559db4fb1
Merge branch '2.0'
2015-09-21 23:23:51 +02:00
Felix Geyer
673dff2268
Auto-Type: Raise target window after showing the select dialog.
...
kwin >= 5.4 (since commit cfa1d61) prefers to focus the main window
instead of following the focus chain.
We ask the window manager nicely to focus the window we want to
type into. kwin seems to follow that (in the default configuration).
2015-09-21 23:12:10 +02:00
Felix Geyer
bb38be40f6
Enable Ctrl+M shortcut to minimize window on all platforms.
...
Closes #329
2015-09-13 22:33:07 +02:00
Felix Geyer
f236c32063
Clear clipboard when locking databases.
...
Closes #342
2015-09-13 12:38:19 +02:00
Felix Geyer
3dd98deecc
Use QStandardPaths::DataLocation instead of AppDataLocation.
...
AppDataLocation is only available in Qt >= 5.4.
2015-09-12 18:41:48 +02:00
Paultergeist
abacec5787
Fixed compile error on Mac
2015-09-12 14:00:53 +02:00
Benjamin Robin
d84af2def0
Fix the open recent database menu.
...
With at least Qt 5.5 the action text is automatically modified from
/home/ben/db.kdbx to /&home/ben/db.kdbx
So add the path of the database to the action using setData
Signed-off-by: Benjamin Robin <dev@benjarobin.fr>
2015-09-12 14:00:03 +02:00
Felix Geyer
7fa0eddc5f
Make C++11 mandatory.
2015-09-12 13:55:50 +02:00
Felix Geyer
0e85c98d02
Remove backported definitions from Global.h.
2015-09-12 13:51:49 +02:00
Felix Geyer
ba1ca4ec08
Rename x11 auto-type plugin to xcb.
...
This matches what QGuiApplication::platformName() returns.
2015-09-12 13:51:49 +02:00
Felix Geyer
20b13a4a2e
Ger rid of last Qt 4 version check.
2015-09-12 13:51:49 +02:00
Felix Geyer
460b23b1eb
Use QElapsedTimer everywhere.
2015-09-12 13:51:49 +02:00
Felix Geyer
9882f16614
Remove Tools::currentDateTimeUtc().
2015-09-12 13:51:49 +02:00
Felix Geyer
60daa2b41b
Require libgcrypt >= 1.6.0.
...
Remove our own Salsa20 implementation as libgcrypt ships one
with that version.
2015-09-12 13:51:49 +02:00
Felix Geyer
ec8c0bb3e7
Setup new build dependencies.
2015-09-12 13:51:49 +02:00
Felix Geyer
b904fe5acd
Adapt X11 auto-type plugin to handle xcb instead of xlib events.
2015-09-12 13:51:49 +02:00
Felix Geyer
3b07098731
Port native event filter to Qt 5.
2015-09-12 13:51:49 +02:00
Felix Geyer
03a330a4dd
Port Tools::platform() to Qt 5.
...
The Q_WS_* definitions are gone.
2015-09-12 13:51:49 +02:00
Felix Geyer
6502da549b
Fix build failure in AutoTypePlatformX11::SendEvent().
2015-09-12 13:51:49 +02:00
Felix Geyer
9e05f41747
Port to Qt 5 plugin system.
2015-09-12 13:51:49 +02:00
Felix Geyer
208b0f39e6
Adapt to QtConcurrent being a separate module now.
2015-09-12 13:51:49 +02:00
Felix Geyer
5ad9edc3fd
QDesktopServices::storageLocation() calls to QStandardPaths.
2015-09-12 13:51:49 +02:00
Felix Geyer
c714fc89f1
Add missing include statements.
2015-09-12 13:51:49 +02:00
Felix Geyer
e3cde7b55e
Adapt to setSupportedDragActions() begin removed.
...
Models have a virtual supportedDragActions() now.
2015-09-12 13:51:49 +02:00
Felix Geyer
5a745da07b
Remove QCOmmandLineParser.
...
It is part of Qt >= 5.2.
2015-09-12 13:51:49 +02:00
Felix Geyer
531018e58d
Remove QSaveFile and QLockFile.
...
They are part of Qt >= 5.1.
2015-09-12 13:51:49 +02:00
Felix Geyer
813c64a055
Port cmake files to Qt 5.
2015-09-12 13:51:49 +02:00
Felix Geyer
0b43607aa1
Make sure we use the native file dialog on Windows and OS X.
2015-09-06 13:32:12 +02:00
Felix Geyer
e75efb8bfb
Improve setting the default file extension in FileDialog.
...
Largely from PR #105 by Charles Brunet <charles@cbrunet.net>
2015-09-05 19:10:26 +02:00
Akinori MUSHA
5c7c7f54fa
Improve UI of the search edit.
...
- The copy action (Control+C) when no text is selected copies the
password of the current entry. This should be reasonable when
Control+B copies the username.
- Down at EOL moves the focus to the entry view. Enter and Tab should
do that, but it would be handy for user to be able to get to the third
entry by hitting Down three times.
2015-08-05 19:02:17 +09:00
Felix Geyer
98417d6465
Set default extension when selected filename doesn't have one.
...
Closes #79
2015-07-25 18:16:33 +02:00
Felix Geyer
0ea64afe92
Fix type of default value for options.
2015-07-25 18:13:57 +02:00
Felix Geyer
a862f62fe8
Set a default filename when saving a new database.
...
Closes #308
2015-07-25 17:47:45 +02:00
Felix Geyer
5bd525a6dd
Use correct keycode when unregistering global shortcuts.
...
charToKeySym() is already correctly used in registerGlobalShortcut().
2015-07-22 20:38:03 +02:00
Felix Geyer
af3d896bdf
Make setNativeLocks() non-fatal on OS X.
2015-07-21 23:12:20 +02:00
Felix Geyer
ceeb72a277
Pull QLockFile updates from the qtbase repository.
2015-07-21 23:11:02 +02:00
Florian Geyer
41a7c96968
Close search before locking database and add additional check on current group.
...
Closes #309 .
2015-07-20 22:45:57 +02:00
Felix Geyer
606e36acf3
Detect and display more errors when writing databases.
2015-07-20 21:35:48 +02:00
Felix Geyer
0422943d52
Explicitly close/reset streams so we can detect errors.
2015-07-20 21:35:48 +02:00
Felix Geyer
0024f2e30f
Signal errors in QXmlStreamWriter upstream.
...
Unfortunately the method is only avaiable in Qt >= 4.8.
Not much we can do about that.
2015-07-20 21:35:43 +02:00
Felix Geyer
abe5e8ecea
Don't write final block(s) if we already have.
2015-07-20 21:33:51 +02:00
Felix Geyer
61503a8047
SymmetricCipherStream: Add error handling when reading from the device.
2015-07-20 19:54:18 +02:00
Felix Geyer
fcb5deff0a
SymmetricCipherStream: Fix error string when detecting an error while writing.
2015-07-20 19:53:17 +02:00
Felix Geyer
84ee8b993f
Explicity hide the tray icon before deleting it.
...
In some conditions the tray icon stayed visible until the application
was closed.
Tested on Kubuntu 15.04 (KDE Plasma 5.2).
2015-07-19 21:14:08 +02:00
Felix Geyer
7d3fb58cf5
Fix lock file location in saveDatabaseAs().
...
Previously the directory of the lock file path was empty when
saving to a new file.
saveFile.open() doesn't create the file and canonicalPath()
only works when the file exists.
2015-07-19 00:41:35 +02:00
Felix Geyer
df5da2fcef
Fix lock file handling in saveDatabaseAs().
2015-07-18 22:46:45 +02:00
Felix Geyer
607007f94f
Display country in language list.
...
But only if the translation specifies one.
2015-07-18 18:38:41 +02:00
Felix Geyer
6327eaf587
Fix tab name for read-only databases.
2015-07-18 18:29:19 +02:00
Felix Geyer
b1fd99f4c4
Enable document mode of DatabaseTabWidget.
...
This fixes a visual artifact when the GTK style is used and
only one database tab is open.
Closes #131
2015-07-18 18:27:17 +02:00
Felix Geyer
c6fe0da569
Abort closing the app if saving a database failed.
2015-07-18 17:36:08 +02:00
Florian Geyer
b9fe2c1bf9
Small clean up.
2015-07-18 13:23:36 +02:00
Florian Geyer
3efc8f457a
Display git revision in about dialog.
2015-07-18 13:14:13 +02:00
Felix Geyer
65e8732eeb
Remove --password command line option.
...
Passing passwords on the command line is unsafe.
2015-07-17 21:31:36 +02:00
Florian Geyer
fa0fe6d33d
Make tab order consistent.
2015-07-16 23:50:35 +02:00
Felix Geyer
6889cc2f20
Another Qt 4.6 compatibility fix.
2015-07-16 22:55:50 +02:00
Felix Geyer
8325b20d36
Make QElapsedTimer optional in QLockFile.
...
This restores compatibility with Qt 4.6.
2015-07-16 21:52:08 +02:00
Felix Geyer
826cd472c8
Group all copy to clipboard menu entries together.
2015-07-16 20:09:23 +02:00
Felix Geyer
8ecab15c33
Merge remote-tracking branch 'github/pr/112'
...
Closes #149
2015-07-16 20:06:44 +02:00
Felix Geyer
c9520214e2
Merge remote-tracking branch 'github/pr/72'
2015-07-16 20:04:26 +02:00
Felix Geyer
6d1ca363af
Remove support for clearing the Klipper history.
...
KDE Plasma 5 doesn't provide the DBus interface anymore and
this avoids the QtDBus dependency.
2015-07-16 20:02:10 +02:00
Felix Geyer
2170794d9c
Guess the scheme when opening URLs.
...
Closes #293
2015-07-16 19:52:34 +02:00
Felix Geyer
719ac64851
Fix unused variable warning.
2015-07-16 19:49:41 +02:00
Felix Geyer
d3a7e0dee9
Merge remote-tracking branch 'github/pr/108'
2015-07-16 19:32:07 +02:00
Felix Geyer
ceb6a0383e
Add ability to export databases to CSV files.
...
Based on implementation by Florian Geyer <blueice@fobos.de>
Closes #57
2015-07-14 22:14:34 +02:00
Felix Geyer
af84261eb6
Avoid calling QDesktopServices::openUrl() when cmd is empty.
2015-07-13 22:41:03 +02:00
Felix Geyer
274f86fd04
Merge branch 'pr-94'
...
https://github.com/keepassx/keepassx/pull/94
Closes #244
2015-07-13 22:36:56 +02:00
Felix Geyer
bcc3108c3d
Coding style cleanup.
2015-07-13 22:36:20 +02:00
Felix Geyer
5f1b286630
Merge branch 'pr-95'
...
https://github.com/keepassx/keepassx/pull/95
Closes #283
2015-07-13 22:22:45 +02:00
Felix Geyer
8ad48d6774
Protect against emitting inactivityDetected() while it'is still processed.
2015-07-13 21:25:48 +02:00
Felix Geyer
721bec9794
Make sure we don't lock the database while a dialog is open.
...
This can happen when
- the user is picking out a file to save the database as
- a dialog asking the user to save/discard/cancel the current database
changes is active
It is dangerous to lock the databases while these actions are still
in progress.
Closes #208
2015-07-13 21:25:38 +02:00
Felix Geyer
c6105a08ab
KeePass2XmlReader: Don't fail wheh nreading empty UUIDs.
...
Closes #298
2015-07-13 21:01:55 +02:00
Felix Geyer
154f1673e9
QSaveFile: Flush temporary file and fsync before renaming.
...
Closes #301
2015-07-13 21:01:53 +02:00
Felix Geyer
577609b3e3
Make calling QSaveFile::commit() non-fatal if it's not open.
2015-07-13 21:00:50 +02:00
Florian Geyer
f22069bb11
Use higher increment for transform rounds in benchmark.
...
Thanks to Sami Farin for providing a patch.
Closes #305 .
2015-07-12 21:48:55 +02:00
Codifier
280a1aceb9
Bug #149
...
Moved the actionEntryCopyUsername and actionEntryCopyPassword actions to the root level of the context menu, for easier access and changed their labels to 'Copy username' and 'Copy password', respectively.
2015-07-12 20:54:02 +02:00
Andy Zeigler
bcd3de1180
Add keyboard shortcut (Ctrl-Alt-U) for copy URL to clipboard.
2015-06-12 19:29:02 -07:00
Florian Geyer
f4361dd4d5
Fix enabled state of copy notes action.
2015-06-05 18:37:22 +02:00
Felix Geyer
7db9c78855
Ignore libgcrypt errors in CryptoHash::CryptoHash().
...
Postponed until after 2.0 when I'll use excpetions.
Should be safe as we check basic functioning in Crypto::testSha256().
2015-05-14 20:44:17 +02:00
Felix Geyer
7a2c02f0df
Initialize some instance variables in ctor.
...
Discovered by Coverity.
Most likely doesn't fix any actual bug but better be safe.
2015-05-14 16:58:53 +02:00
Felix Geyer
c535736853
Add GUI for changing default group auto-type sequence.
...
Closes #175
2015-05-14 12:59:36 +02:00
Felix Geyer
a8bf6a9782
Refactor Tools::disableCoreDumps().
...
- Use all available methods.
- Don't print a warning when no method is implmeneted on the platform.
2015-05-14 12:58:00 +02:00
Amir Pakdel
0458dad6dc
Code cleanups
2015-05-13 14:34:48 -04:00
Felix Geyer
68373730bf
Fix compiler warnings where keysyms are printed.
...
%lX expectes unsigned long which KeySym is an alias for.
2015-05-12 23:57:36 +02:00
Felix Geyer
5d9039ea89
Silence compiler warning about an unused variable.
2015-05-12 23:40:02 +02:00
Felix Geyer
7e1faadd11
Merge remote-tracking branch 'github/pr/96'
...
Closes #218
2015-05-12 23:35:19 +02:00
Felix Geyer
fceb93061d
Merge remote-tracking branch 'github/pr/97'
...
Closes #290
2015-05-12 22:31:51 +02:00
Amir Pakdel
c9d007fcdf
Always clearing ChangeMasterKeyWidget.m_key
2015-05-12 16:31:14 -04:00
Felix Geyer
eeb940c0dc
Fix plugin path detection when installed with DESTDIR.
...
This is in no way perfect but should cover most common cases.
Closes #291
2015-05-12 22:24:59 +02:00
Felix Geyer
05b5446e94
Protect opened databases with a file lock.
...
Closes #18
2015-05-12 22:24:45 +02:00
Amir Pakdel
b45437d502
Refactored DatabaseWidget::currentEntryHas*()
2015-05-12 15:54:39 -04:00
Amir Pakdel
a599787a25
Bug #290
...
Show realted menu option to current entry only if the corresponding
field is not empty.
2015-05-12 15:50:10 -04:00
Amir Pakdel
58061af959
Bug #218
...
Do not accept faulty files as Key File. Moreover, do not clear keys
unless we have a key to add.
2015-05-12 15:17:39 -04:00
Amir Pakdel
8bf1bb0517
Bug #283
...
Updated messages related to saivng and closing a database to make
them more clear about what is going to happen.
2015-05-12 13:46:48 -04:00
Amir Pakdel
d26cff520f
Bug #244
...
Supporting cmd:// URLs
2015-05-12 12:25:43 -04:00
Felix Geyer
ade684d501
Crypto::selfTest(): test AES in ECB mode.
2015-05-10 00:02:08 +02:00
Felix Geyer
4362c3ea38
Handle cipher errors in TransformKeyBenchmarkThread.
2015-05-09 23:38:04 +02:00
Felix Geyer
e0d4b4b625
Adapt Salsa20 backend to the new interface.
2015-05-09 23:21:50 +02:00
Felix Geyer
cfffdae573
Improve error reporing of layered streams.
2015-05-09 23:21:50 +02:00
Felix Geyer
f6243675c9
Warn if result of processInPlace() is unchecked.
...
Fix callers accordingly.
2015-05-09 23:21:50 +02:00
Felix Geyer
a762cef0a9
Catch and handle all errors from libgcrypt.
2015-05-09 23:21:44 +02:00