Commit Graph

1488 Commits

Author SHA1 Message Date
Martin Kleusberg
c655727cdd Don't automatically commit all changes when editing a table column
Editing a table column in the Edit Table dialog accidentally committed
all prior changes to the database, effectively clicking the 'Write
Changes' button while working on the table. This is no problem if your
working on a clean database, but is a problem if you have made other
changes before. In the latter case you lose the ability to roll them
back and you can't use the Cancel button in the Edit Table dialog
anymore.

See issue #1116.
2017-09-02 11:24:16 +02:00
Martin Kleusberg
9b77055b1d Fix index updating when removing an indexed column from a table
When changing an indexed column from a table using the Edit Table dialog
we try to update the corresponding indices as well. So if a column is
renamed all references to it in the indices are renamed accordingly.
This, however, didn't take into account that you can also remove
columns. While trying to update the column to nothing, the application
would crash. This is fixed by this commit. It doesn't crash anymore and
now removes the column from the index as expected.

See issue #1115.
2017-09-02 10:38:21 +02:00
Martin Kleusberg
ab7f0cf4af dbhub: Ask user what to do when trying to open an updated database
If there is a local clone of a remote database but the remote database
has been updated to a newer version in the meantime, we're now asking
the user what to do. The choice is between downloading the newer version
and overwriting the local one with all the changes it might have
contained or opening the local version and not downloading anything.

See issue #1096.
2017-09-01 18:54:55 +02:00
Justin Clift
ddd08a4f9d Fix typo in Russian translation
As pointed out by @Vort in #1107
2017-09-01 14:16:12 +01:00
Martin Kleusberg
300affa839 dbhub: Optimise code 2017-09-01 13:56:05 +02:00
Martin Kleusberg
a84300c806 dbhub: Improve file size format
As per suggestion by @chrisjlocke, this commit removes the trailing
'.00' bit for round numbers.
2017-09-01 13:37:06 +02:00
Martin Kleusberg
dea1a1ce95 Add flag icon for Egyptian Arabic 2017-09-01 13:34:49 +02:00
Martin Kleusberg
88ee1ac535 dbhub: Tweak certificate UI in the preferences dialog
Don't highlight all the horizonzal headers when selecting a certificate
row in the preferences dialog.

See issue #1087.
2017-09-01 13:08:31 +02:00
Martin Kleusberg
437163054c dbhub: Fix wrong file size being shown for very large files
See issue #1113.
2017-09-01 12:44:02 +02:00
Martin Kleusberg
f830f4265c dbhub: Fix progress dialog for very large files
See issue #1095.
2017-09-01 12:36:20 +02:00
Martin Kleusberg
49e6733dac dbhub: Enforce name and commit message length limits in push dialog
See issue #1097.
2017-09-01 12:05:45 +02:00
Martin Kleusberg
6cac6643f1 dbhub: Remove closing "." from the progress dialog
See issue #1095.
2017-09-01 11:27:28 +02:00
Martin Kleusberg
9fa8ffba2e cipher: Change tab order in encryption dialog
Change the tab order in the encryption dialog so that the password
editor is the widget that is selected by default. That makes it possible
to type in the passphrase right away without navigating to the widget
first.
2017-09-01 10:15:47 +02:00
Martin Kleusberg
5a922fff83 cipher: Fix passphrases containing single quotes
This fixes a regression introduced in d1e3e98006 which makes it
impossible to open encrypted databases with single quote characters in
their passphrase.

See issue #1105.
2017-09-01 10:12:54 +02:00
Martin Kleusberg
516ff44789 dbhub: Redownload database if local copy has been deleted
See issue #1111.
2017-09-01 09:57:44 +02:00
Martin Kleusberg
0160fb7462 dbhub: Add tooltip to cog tool button
See issue #1111.
2017-09-01 09:47:13 +02:00
Justin Clift
db88d6e952 Merge pull request #1102 from da2x/master
Change some OK buttons to Save buttons
2017-08-25 14:34:43 +01:00
Justin Clift
3e0f9ddebf Leave the vacuum dialog button as-is 2017-08-25 14:33:51 +01:00
Justin Clift
96d4413e3f Merge pull request #1101 from da2x/patch-1
Update compacting warning string
2017-08-25 10:09:17 +01:00
Justin Clift
cf15fbf3c5 Update version number to 3.10.99, which indicates a development version of 3.11.0 2017-08-25 10:08:25 +01:00
Daniel Aleksandersen
44361df4e9 Change some OK buttons to Save buttons 2017-08-25 07:05:58 +02:00
Daniel Aleksandersen
809690628e Update compacting warning string 2017-08-25 03:55:35 +02:00
Justin Clift
85613ea892 Merge pull request #1091 from bssthu/master
Update Chinese translation
2017-08-18 19:15:39 +01:00
Justin Clift
04e64f4844 Update version numbers to 3.10.0 2017-08-18 18:35:59 +01:00
bssthu
dba87f0f3f update Chinese translation 2017-08-19 01:34:29 +08:00
Justin Clift
0c20582edb Stop crash causing event storm for uploading progress dialog 2017-08-17 21:59:50 +01:00
Justin Clift
503a329b70 Update translation files with the recent source string changes 2017-08-16 19:51:03 +01:00
bss, shaoshi
d0e8370574 Update Chinese translation (#1085) 2017-08-16 19:48:14 +01:00
Martin Kleusberg
84615258af dbhub: Push databases using the POST method instead of PUT 2017-08-15 21:22:05 +02:00
Martin Kleusberg
60a48ce9ec Fix attaching not encrypted databases in the SQLCipher build
Even when trying to attach a non-encrypted database in the SQLCipher
build we would try to give a passphrase - though an empty one. This
yields an invalid SQL statement, so attaching would never work. This is
fixed by this commit.

See issue #1088.
2017-08-15 11:23:51 +02:00
Martin Kleusberg
c3ab20b6b5 Fix indentation 2017-08-15 11:13:30 +02:00
Martin Kleusberg
d1f90994fb Activate attach menu item right after opening a database
The 'attach database' menu item was only activated after making changes
to the database and saving them. With this commit it's activated right
after opening a database, too.
2017-08-15 11:13:29 +02:00
Gihun Ham
5ba7d5f9e2 Korean Translation 2017-08-14 12:31:18 +01:00
Justin Clift
a8b62dd768 Update source strings for Korean translation 2017-08-14 05:33:20 +01:00
Gihun Ham
b59c7d5f0e Korean translation (#1083) 2017-08-14 05:30:39 +01:00
Justin Clift
95f9e740ef Update version number to 3.9.200, which we're using for 3.10.0-beta2 2017-08-13 21:00:20 +01:00
Martin Kleusberg
bbbadba732 dbhub: Open the user's directory by default
When 'logging in' or refreshing the view, look for the user's directory
and open it by default.
2017-08-13 15:12:50 +02:00
Martin Kleusberg
38caf867bc dbhub: Refresh the directory list when a database upload has finished 2017-08-13 14:53:19 +02:00
Martin Kleusberg
0da9e1c3e0 dbhub: Don't tolerate host name mismatch errors
These were only accepted for debug purposes and shouldn't occur in an
actual installation.
2017-08-13 13:45:59 +02:00
Martin Kleusberg
17cf3ad7d9 dbhub: Support multiple simultaneous downloads/uploads of databases
This feature isn't explicitly available via the UI (yet) but should
prevent errors when the user is faster than the network connection, e.g.
when opening two directories very quickly.
2017-08-13 13:42:30 +02:00
Martin Kleusberg
09319001ea dbhub: Don't read entire file at once when pushing it to remote server 2017-08-13 13:24:36 +02:00
Martin Kleusberg
3d1f2062f9 dbhub: Also clear access cache when pushing a database as other user 2017-08-12 21:49:32 +02:00
Martin Kleusberg
d5e922f204 dbhub: Fix progress dialog when fetching/pushing db after cancelling 2017-08-12 18:59:59 +02:00
Martin Kleusberg
b51eeccba1 dbhub: Make it clearer what the private/public flag means 2017-08-12 18:48:07 +02:00
Martin Kleusberg
1c7cc24b15 dbhub: Improve push database UI
This adds a new Push Database dialog which lets you specify the database
name, the licence, a commit message, and the visibility of the database.
2017-08-12 14:58:30 +02:00
FriedrichFroebel
5bdefad4fc Update German translation (#1081) 2017-08-11 19:07:28 +01:00
Martin Kleusberg
b0c3d973ce Improve detection of PRAGMA and VACUUM statements in Execute SQL tab
In the Execute SQL tab we need to detect PRAGMA and VACUUM statements
before executing them in order to now execute them inside a transaction
which isn't supported by SQLite. If such a statement followed any other
statement however, the detection would fail, e.g.
pragma user_version=1;	-- this works
pragma app_version=2;	-- this fails

This should be fixed by this commit.
2017-08-11 18:18:55 +02:00
Martin Kleusberg
c636a505c8 Allow VACUUM command in Execute SQL tab
This allows the user to execute VACUUM commands in the Execute SQL by
detecting them and not creating a transaction for them.

See issue #1021.
2017-08-11 18:17:55 +02:00
Martin Kleusberg
5ae5241b95 Don't allow query execution when no database is opened
Some time ago we changed the Execute SQL tab to allow open SQL files
even if no database is loaded in order to provide an SQL editor without
needing a database.

If no database file is opened the Execute buttons were greyed out but
the F5/Ctrl+R shortcut would still work, causing an "out of memory"
error. That error doesn't cause any harm but is a bit confusing. So this
commit disables the keyboard shortcuts too.
2017-08-11 17:19:42 +02:00
Martin Kleusberg
1becee77ee tests: Add more regex tests 2017-08-10 21:39:51 +02:00