aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseViewController.m')
-rw-r--r--Source/SPDatabaseViewController.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/SPDatabaseViewController.m b/Source/SPDatabaseViewController.m
index 485a3cfa..962ebedb 100644
--- a/Source/SPDatabaseViewController.m
+++ b/Source/SPDatabaseViewController.m
@@ -37,6 +37,7 @@
#import <SPMySQL/SPMySQL.h>
#ifdef SP_REFACTOR /* headers */
#import "SPTableStructure.h"
+#import "SPTableStructureLoading.h"
#endif
@interface SPDatabaseDocument (SPDatabaseViewControllerPrivateAPI)
@@ -220,7 +221,11 @@
*/
- (void)setStructureRequiresReload:(BOOL)reload
{
+#ifndef SP_REFACTOR
if (reload && selectedTableName && [tableTabView indexOfTabViewItem:[tableTabView selectedTabViewItem]] == SPTableViewStructure) {
+#else
+ if (reload && selectedTableName ) {
+#endif
[tableSourceInstance loadTable:selectedTableName];
} else {
structureLoaded = !reload;