Commit Graph

1597 Commits

Author SHA1 Message Date
Martin Kleusberg
da7f472864 Make shortcut for 'reload' dependent on currently active tab
Make the reload shortcut (at the moment F5 and Ctrl+R) dependent on the
currently active tab. This way it always performs some meaningful task,
depending on the current context.

See issue #759.
2016-10-13 12:22:54 +02:00
Martin Kleusberg
e76e5b3241 Improve error handling when saving
Report any errors that might occur while saving changes to the database
to the user. Also warn the user that this means the database wasn't
saved entirely.

See issue #770.
2016-10-13 00:08:48 +02:00
Martin Kleusberg
2563d67868 Fix cmake file 2016-10-12 23:26:56 +02:00
Martin Kleusberg
34246120d8 Simplify code 2016-10-12 22:12:49 +02:00
Iulian Onofrei
a4f44d8f19 Fix multiple commented out lines not being ignored (#811)
This was supposed to be fixed by 842aec8, but it wasn't. It now removes
everything that starts with two consecutive dashes, up until the end of
the respective line.
2016-10-11 22:11:39 +03:00
Iulian Onofrei
90f98f311e Add system version requirement in Issue template 2016-10-10 12:09:57 +03:00
Iulian Onofrei
175a162d1a Clear Browse Data paging label on database close
Before this, only the start index was being reset to 0, now it resets
all the indexes to 0 after closing a database.

This fixes #809
2016-10-09 03:21:52 +03:00
Martin Kleusberg
7b86b17788 Fix a couple of memory leaks 2016-10-08 23:50:53 +02:00
Justin Clift
2a097a639a Add a comment about the ScrollPerItem default, as it was tricky to debug 2016-10-08 22:42:28 +01:00
Iulian Onofrei
e5bca9d2db Fix incorrect scrollbar size on macOS with Qt5 (#810)
Building the project with Qt5 on macOS and browsing a huge table, the
scrollbar height was smaller than necessary. Scrolling to the end, some
rows were not showing up.

This was caused by the default vertical scroll mode, which is set to
ScrollPerPixel on macOS, and ScrollPerItem on other systems.
2016-10-08 22:40:19 +01:00
ilovezfs
969e263e5b Xcode 8 fix for QScintilla2 2016-10-07 12:10:55 +01:00
Iulian Onofrei
2bdd71a78b Fix uninitialized value memory error (#793)
While profiling using Valgrind, two uninitialized value errors popped up,
because the dataSource iVar was used in the if check from the editTextChanged
function before initializing it. This commit moves the dataSource
initializations before any other calls.
2016-10-04 16:04:17 +01:00
Justin Clift
9d6713c5ad Updated currentrelease to 3.9.1 2016-10-03 02:38:35 +01:00
Justin Clift
722cecaa69 Updated issue reporting template for 3.9.1 2016-10-03 01:25:04 +01:00
Justin Clift
bd92a5bb95 Updated README.md with 3.9.1 release date 2016-10-03 01:17:01 +01:00
Oleg V. Polivets
842a634be5 RID: AboutDialog WindowContextHelpButtonHint window flag (#796) 2016-10-02 17:13:55 +01:00
Oleg V. Polivets
d1f93d96f9 UPDATE Russian translation (#795) 2016-10-01 22:14:33 +01:00
Iulian Onofrei
b59aeecdd9 Merge branch 'master' of https://github.com/sqlitebrowser/sqlitebrowser 2016-10-01 21:58:31 +03:00
Iulian Onofrei
531eddbd6c Fix executing current SQL running incorrect line
Previously, it was running the query at the current cursor position, but that
proved to be confusing. Now, it runs the SQL that contains the start of the
current line. So having:

SELECT * FROM table1;
SELECT * FROM table2;

and the cursor either before the first semicolon, either after it, the first
SQL will be run, and not the second one as before.
2016-10-01 21:43:22 +03:00
Justin Clift
7be2457ac4 Updated Ubuntu instructions to use Qt5 2016-10-01 00:23:21 +01:00
Iulian Onofrei
f2956164c3 Fix Execute SQL trying to run spaces SQLs 2016-10-01 02:19:36 +03:00
Iulian Onofrei
45affc9bd5 Fix executing current SQL line not working always
If the last character was a semicolon and the cursor was placed after
it, the Execute current line action didn't execute anything. It now
execute the last SQL found
2016-09-30 20:39:46 +03:00
Iulian Onofrei
8c510ff4e4 Add unquoted single cell copy functionality
If a single cell is copied, its contents are not quoted now. This was
working in 3.8.0.

See #789
2016-09-30 15:24:18 +03:00
Martin Kleusberg
4c8e2a3517 Simplify code 2016-09-29 22:17:46 +02:00
Martin Kleusberg
8be2c54f51 Don't simplify table/index/... names when using them internally
See issue #773.
2016-09-29 20:10:23 +02:00
Justin Clift
1180540bfa Updated comment missed in previous commit 2016-09-29 01:17:44 +01:00
Justin Clift
90ad75071e Add cmake and gcc-c++ CentOS build dependencies 2016-09-29 01:16:03 +01:00
Justin Clift
75e01bff0d Added .qmake.stash to .gitignore 2016-09-28 17:02:51 +01:00
Justin Clift
f537a009a0 Add placeholder File → Remote submenu + basic Preferences options 2016-09-28 13:59:41 +01:00
Iulian Onofrei
18dccd162e Add escape for Qt4 and leave toHtmlEscaped for Qt5
This would ease out Qt5 only migration by searching for `QT_VERSION < 0x050000` and removing those lines.
2016-09-27 17:42:35 +03:00
Justin Clift
482502f4f4 Replace QString::toHtmlEscaped() with Qt::escape(), for Qt4 compatibility 2016-09-27 15:25:03 +01:00
Iulian Onofrei
b005c7eef6 Add Contributors section in the README
- related to #787
2016-09-27 14:11:55 +03:00
Vladislav Tronko
45e17c9b49 Remove maleficent return in previous commit 2016-09-26 14:27:53 +03:00
Vladislav Tronko
11558a86b4 Implement switching tabs using Alt modifier + number 2016-09-26 14:11:59 +03:00
Vladislav Tronko
b9dd11df53 Escape HTML entities in Execute SQL output(fixes #777) 2016-09-25 21:01:55 +03:00
Iulian Onofrei
d825af8c69 Update MainWindow.cpp
Fix Travis build error introduced by the last merged PR
2016-09-23 15:23:21 +03:00
Iulian Onofrei
420b98fee3 Fixed executing current SQL line not working for multiple lines SQLs (#780) 2016-09-23 00:17:48 +03:00
Iulian Onofrei
1257134dc6 Update sqlb_de.ts
Fixed SQLCipher typos
2016-09-19 12:38:18 +03:00
Bernardo Sulzbach
1a78b50026 Portuguese translation should be more consistent (#772) 2016-09-11 12:35:13 +01:00
Justin Clift
7deeb02889 Merge pull request #767 from justinclift/display_truncated_length_symbol
Indicate when display strings are being truncated
2016-09-09 10:22:00 +01:00
Iulian Onofrei
64ee665322 Made field adding easier to use
- the table now scroll to the bottom so the newly inserted field will be
  in view
- the first column (Name) is now auto-selected for easy text update
- related to #769
2016-09-09 01:03:46 +03:00
Iulian Onofrei
55d8905b90 Fixed SQL log containing incorrect lines when executing the current line
- related to #768
- introduced by 649b1790
2016-09-09 00:46:29 +03:00
Iulian Onofrei
7d97688a0a Added macOS app file to .gitignore 2016-09-08 23:12:09 +03:00
Iulian Onofrei
842aec8d5a Fixed multiple commented out lines not being ignored
- fixes #766
- introduced by f37c162
2016-09-08 22:35:13 +03:00
Justin Clift
0c7605b8d8 Indicate when display strings are being truncated
Also reduce the minimum length to 1, just in case it's useful for
people
2016-09-08 19:03:38 +01:00
Vladislav Tronko
8783728c19 Moved inserting empty row inside model code 2016-09-06 23:01:03 +03:00
Martin Kleusberg
76402012ae travis: Try fixing gcc build 2016-09-06 17:14:14 +02:00
Martin Kleusberg
5dddffd7a0 travis: Fix building 2016-09-06 17:07:06 +02:00
Martin Kleusberg
affacf08bd Test adding C++11 code 2016-09-06 16:19:10 +02:00
Martin Kleusberg
c37c39a7d7 Fix Qt4 build some more 2016-09-06 15:58:59 +02:00