diff options
34 files changed, 1964 insertions, 2021 deletions
diff --git a/.linthub.yml b/.linthub.yml index 900fabca..d6365ac3 100644 --- a/.linthub.yml +++ b/.linthub.yml @@ -1,6 +1,6 @@ platform: linux | osx build: -- qmake +- qmake - make analyzers: - cpplint: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e3de550..01872a37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Insecure Password Generation [\#338](https://github.com/IJHack/QtPass/issues/338) - Clipboard clearing timer is not reset when new passwords are copied to the clipboard [\#309](https://github.com/IJHack/QtPass/issues/309) - Removal of files outside of password-store [\#300](https://github.com/IJHack/QtPass/issues/300) +- Some fixes and refactoring. [\#376](https://github.com/IJHack/QtPass/pull/376) ([FiloSpaTeam](https://github.com/FiloSpaTeam)) - Fix & make clearClipboard more robust [\#359](https://github.com/IJHack/QtPass/pull/359) ([lukedirtwalker](https://github.com/lukedirtwalker)) **Closed issues:** @@ -28,6 +29,7 @@ **Merged pull requests:** +- Sorry for last error :\) [\#370](https://github.com/IJHack/QtPass/pull/370) ([FiloSpaTeam](https://github.com/FiloSpaTeam)) - Optimizations :\) [\#367](https://github.com/IJHack/QtPass/pull/367) ([FiloSpaTeam](https://github.com/FiloSpaTeam)) - Removed comment out \#includes [\#365](https://github.com/IJHack/QtPass/pull/365) ([FiloSpaTeam](https://github.com/FiloSpaTeam)) - fix for \#300 [\#363](https://github.com/IJHack/QtPass/pull/363) ([FiloSpaTeam](https://github.com/FiloSpaTeam)) diff --git a/localization/localization_ar_MA.ts b/localization/localization_ar_MA.ts index eee13511..f1d5d10c 100644 --- a/localization/localization_ar_MA.ts +++ b/localization/localization_ar_MA.ts @@ -311,57 +311,57 @@ email</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="28"/> + <location filename="../src/configdialog.cpp" line="67"/> <source>No Clipboard</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="29"/> + <location filename="../src/configdialog.cpp" line="68"/> <source>Always copy to clipboard</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="30"/> + <location filename="../src/configdialog.cpp" line="69"/> <source>On-demand copy to clipboard</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="517"/> + <location filename="../src/configdialog.cpp" line="414"/> <source>No profile selected</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="518"/> + <location filename="../src/configdialog.cpp" line="415"/> <source>No profile selected to delete</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="556"/> + <location filename="../src/configdialog.cpp" line="453"/> <source>GnuPG not found</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="557"/> + <location filename="../src/configdialog.cpp" line="454"/> <source>Please install GnuPG on your system.<br>Install <strong>gpg</strong> using your favorite package manager<br>or <a href="https://www.gnupg.org/download/#sec-1-2">download</a> it from GnuPG.org</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="577"/> + <location filename="../src/configdialog.cpp" line="474"/> <source>Create password-store?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="578"/> + <location filename="../src/configdialog.cpp" line="475"/> <source>Would you like to create a password-store at %1?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="596"/> + <location filename="../src/configdialog.cpp" line="493"/> <source>Password store not initialised</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/configdialog.cpp" line="597"/> + <location filename="../src/configdialog.cpp" line="494"/> <source>The folder %1 doesn't seem to be a password store or is not yet initialised.</source> <translation type="unfinished"></translation> </message> @@ -508,281 +508,281 @@ Expire-Date: 0 <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="348"/> - <location filename="../src/mainwindow.ui" line="351"/> - <location filename="../src/mainwindow.cpp" line="1283"/> + <location filename="../src/mainwindow.ui" line="259"/> + <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Cantarell'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; font-weight:600; color:#333333;">QtPass</span><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;"> is a GUI for </span><a href="https://www.passwordstore.org/"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; text-decoration: underline; color:#4183c4; background-color:transparent;">pass</span></a><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;">, the standard unix password manager.</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;"><br />Please report any </span><a href="https://github.com/IJHack/qtpass/issues"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; text-decoration: underline; color:#4183c4;">issues</span></a><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;"> you might have with this software.</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://qtpass.org/"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; text-decoration: underline; color:#4183c4; background-color:transparent;">Documentation</span></a></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/IJHack/qtpass"><span style=" font-family:'Noto Sans'; font-size:12pt; text-decoration: underline; color:#4183c4;">SourceCode</span></a></p></body></html></source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/mainwindow.ui" line="349"/> + <location filename="../src/mainwindow.ui" line="352"/> + <location filename="../src/mainwindow.cpp" line="1213"/> <source>Edit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="360"/> - <location filename="../src/mainwindow.ui" line="363"/> - <location filename="../src/mainwindow.cpp" line="1295"/> + <location filename="../src/mainwindow.ui" line="361"/> + <location filename="../src/mainwindow.ui" line="364"/> + <location filename="../src/mainwindow.cpp" line="1225"/> <source>Delete</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="375"/> + <location filename="../src/mainwindow.ui" line="376"/> <source>git push</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="372"/> + <location filename="../src/mainwindow.ui" line="373"/> <source>Push</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="327"/> + <location filename="../src/mainwindow.ui" line="329"/> <source>Ctrl+N</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="387"/> + <location filename="../src/mainwindow.ui" line="388"/> <source>git pull</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="384"/> + <location filename="../src/mainwindow.ui" line="385"/> <source>Update</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="399"/> + <location filename="../src/mainwindow.ui" line="400"/> <source>Manage who can read password in folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="396"/> - <location filename="../src/mainwindow.cpp" line="1277"/> + <location filename="../src/mainwindow.ui" line="397"/> + <location filename="../src/mainwindow.cpp" line="1207"/> <source>Users</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="411"/> + <location filename="../src/mainwindow.ui" line="412"/> <source>Configuration</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="408"/> + <location filename="../src/mainwindow.ui" line="409"/> <source>Config</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="51"/> + <location filename="../src/mainwindow.ui" line="52"/> <source>Select profile</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="97"/> + <location filename="../src/mainwindow.ui" line="99"/> <source>Search Password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="173"/> + <location filename="../src/mainwindow.ui" line="175"/> <source>Welcome to QtPass</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="257"/> - <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Noto Sans'; font-size:11pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; font-weight:600; color:#333333;">QtPass</span><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;"> is a GUI for </span><a href="https://www.passwordstore.org/"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; text-decoration: underline; color:#4183c4; background-color:transparent;">pass</span></a><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;">, the standard unix password manager.</span></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;"><br />Please report any </span><a href="https://github.com/IJHack/qtpass/issues"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; text-decoration: underline; color:#4183c4;">issues</span></a><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; color:#333333;"> you might have with this software.</span></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://qtpass.org/"><span style=" font-family:'Helvetica Neue,Helvetica,Segoe UI,Arial,freesans,sans-serif'; font-size:13pt; text-decoration: underline; color:#4183c4; background-color:transparent;">Documentation</span></a></p> -<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://github.com/IJHack/qtpass"><span style=" font-size:12pt; text-decoration: underline; color:#4183c4;">SourceCode</span></a></p></body></html></source> - <translation type="unfinished"></translation> - </message> - <message> <location filename="../src/mainwindow.cpp" line="114"/> <source>Welcome to QtPass %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="220"/> + <location filename="../src/mainwindow.cpp" line="219"/> <source>Failed to connect WebDAV: </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="233"/> + <location filename="../src/mainwindow.cpp" line="232"/> <source>QtPass WebDAV password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="234"/> + <location filename="../src/mainwindow.cpp" line="233"/> <source>Enter password to connect to WebDAV:</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="250"/> + <location filename="../src/mainwindow.cpp" line="249"/> <source>fusedav exited unexpectedly </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="254"/> + <location filename="../src/mainwindow.cpp" line="253"/> <source>Failed to start fusedav to connect WebDAV: </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="490"/> - <location filename="../src/mainwindow.cpp" line="502"/> + <location filename="../src/mainwindow.cpp" line="421"/> + <location filename="../src/mainwindow.cpp" line="433"/> <source>Updating password-store</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="622"/> + <location filename="../src/mainwindow.cpp" line="553"/> <source>Content hidden</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="626"/> - <location filename="../src/mainwindow.cpp" line="1433"/> + <location filename="../src/mainwindow.cpp" line="557"/> + <location filename="../src/mainwindow.cpp" line="1363"/> <source>Password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="723"/> + <location filename="../src/mainwindow.cpp" line="653"/> <source>Clipboard cleared</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="725"/> + <location filename="../src/mainwindow.cpp" line="655"/> <source>Clipboard not cleared</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="740"/> + <location filename="../src/mainwindow.cpp" line="670"/> <source>Password and Content hidden</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="805"/> + <location filename="../src/mainwindow.cpp" line="735"/> <source>QProcess::FailedToStart</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="808"/> + <location filename="../src/mainwindow.cpp" line="738"/> <source>QProcess::Crashed</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="811"/> + <location filename="../src/mainwindow.cpp" line="741"/> <source>QProcess::Timedout</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="814"/> + <location filename="../src/mainwindow.cpp" line="744"/> <source>QProcess::ReadError</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="817"/> + <location filename="../src/mainwindow.cpp" line="747"/> <source>QProcess::WriteError</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="820"/> + <location filename="../src/mainwindow.cpp" line="750"/> <source>QProcess::UnknownError</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="841"/> + <location filename="../src/mainwindow.cpp" line="771"/> <source>Looking for: %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="915"/> - <location filename="../src/mainwindow.cpp" line="1332"/> + <location filename="../src/mainwindow.cpp" line="845"/> + <location filename="../src/mainwindow.cpp" line="1262"/> <source>New file</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="916"/> + <location filename="../src/mainwindow.cpp" line="846"/> <source>New password file: (Will be placed in %1 )</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="944"/> + <location filename="../src/mainwindow.cpp" line="874"/> <source> and the whole content?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="954"/> + <location filename="../src/mainwindow.cpp" line="884"/> <source> and the whole content? <br><strong>Attention: there are unexpected files in the given folder, check them before continue.</strong></source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="963"/> + <location filename="../src/mainwindow.cpp" line="893"/> <source>Delete folder?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="963"/> + <location filename="../src/mainwindow.cpp" line="893"/> <source>Delete password?</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="964"/> + <location filename="../src/mainwindow.cpp" line="894"/> <source>Are you sure you want to delete %1%2</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="999"/> + <location filename="../src/mainwindow.cpp" line="929"/> <source>Can not get key list</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="1000"/> + <location filename="../src/mainwindow.cpp" line="930"/> <source>Unable to get list of available gpg keys</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="1033"/> + <location filename="../src/mainwindow.cpp" line="963"/> <source>Key not found in keyring</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="1107"/> + <location filename="../src/mainwindow.cpp" line="1037"/> <source>Generating GPG key pair</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="1147"/> + <location filename="../src/mainwindow.cpp" line="1077"/> <source>Profile changed to %1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="1274"/> + <location filename="../src/mainwindow.cpp" line="1204"/> <source>Open folder with file manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="336"/> - <location filename="../src/mainwindow.ui" line="339"/> - <location filename="../src/mainwindow.cpp" line="1275"/> + <location filename="../src/mainwindow.ui" line="338"/> + <location filename="../src/mainwindow.ui" line="341"/> + <location filename="../src/mainwindow.cpp" line="1205"/> <source>Add folder</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.ui" line="321"/> - <location filename="../src/mainwindow.ui" line="324"/> - <location filename="../src/mainwindow.cpp" line="1276"/> + <location filename="../src/mainwindow.ui" line="323"/> + <location filename="../src/mainwindow.ui" line="326"/> + <location filename="../src/mainwindow.cpp" line="1206"/> <source>Add password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="1333"/> + <location filename="../src/mainwindow.cpp" line="1263"/> <source>New Folder: (Will be placed in %1 )</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/mainwindow.cpp" line="1382"/> + <location filename="../src/mainwindow.cpp" line="1312"/> <source>Copied to clipboard</source> <translation type="unfinished"></translation> </message> diff --git a/localization/localization_ca.ts b/localization/localization_ca.ts index 7003d8f5..8c1dd043 100644 --- a/localization/localization_ca.ts +++ b/localization/localization_ca.ts @@ -317,57 +317,57 @@ email</translation> <translation><a href="https://QtPass.org/">QtPass</a> versió </translation> </message> <message> - <location filename="../src/configdialog.cpp" line="28"/> + <location filename="../src/configdialog.cpp" line="67"/> <source>No Clipboard</source> <translation>Sense porta-retalls</translation> </message> <message> - <location filename="../src/configdialog.cpp" line="29"/> + <location filename="../src/configdialog.cpp" line="68"/> <source>Always copy to clipboard</source> <translation>Copia sempre al porta-retalls</translation> </message> <message> - <location filename="../src/configdialog.cpp" line="30"/> + <location filename="../src/configdialog.cpp" line="69"/> <source>On-demand copy to clipboard</source> <translation>Copia sota demanda al porta-retalls</translation> </message> <message> - <location filename="../src/configdialog.cpp" line="517"/> + <location filename="../src/configdialog.cpp" line="414"/> <source>No profile selected</source> <translation>Cap perfil seleccionat</translation> </message> <message> - <location filename="../src/configdialog.cpp" line="518"/> + <location filename="../src/configdialog.cpp" line="415"/> <source>No profile selected to delete</source> <translation>No s'ha seleccionat cap perfil per suprimir</translation> </message> <message> - <location filename="../src/configdialog.cpp" line="556"/> + <location filename="../src/configdialog.cpp" line="453"/> <source>GnuPG not found</source> <translation>No s'ha trobat GnuPG</translation> </message> <message> - <location filename="../src/configdialog.cpp" line="557"/> + <location filename="../src/configdialog.cpp" line="454"/> <source>Please install GnuPG on your system.<br>Install <strong>gpg</strong> using your favorite package manager<br>or <a href="https://www.gnupg.org/download/#sec-1-2">download</a> it from GnuPG.org</source> <translation>Instal·leu GnuPG al vostre sistema.<br>Instal·leu <strong>gpg</strong> mitjançant el vostre gestor de paquets preferit<br>o <a href="https://www.gnupg.org/download/#sec-1-2">baixeu-ho</a> de GnuPG.org</translation> </message> <message> - <location filename="../src/configdialog.cpp" line="577"/> + <location filename="../src/configdialog.cpp" line="474"/> <source>Create password-store?</source> <translation>Voleu crear un magatzem de claus?</translation> |