aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TableContent.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/TableContent.m b/TableContent.m
index 6c9c7341..8c72b724 100644
--- a/TableContent.m
+++ b/TableContent.m
@@ -319,7 +319,13 @@
reloads the table (performing a new mysql-query)
*/
{
+ // Store the current viewport location
+ NSRect viewRect = [tableContentView visibleRect];
+
[self loadTable:selectedTable];
+
+ // Restore the viewport
+ [tableContentView scrollRectToVisible:viewRect];
}
- (IBAction)reloadTableValues:(id)sender