diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMTextView.m | 10 | ||||
-rw-r--r-- | Source/TableDump.m | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index d65e2c9d..045c8ab6 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -811,6 +811,13 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) - (IBAction)printDocument:(id)sender { + // If Extended Table Info tab is active delegate the print call to the SPPrintController + // if the user doesn't select anything in self + if([[[[self delegate] class] description] isEqualToString:@"SPExtendedTableInfo"] && ![self selectedRange].length) { + [[[self delegate] valueForKeyPath:@"tableDocumentInstance"] printDocument:sender]; + return; + } + // This will scale the view to fit the page without centering it. [[NSPrintInfo sharedPrintInfo] setHorizontalPagination:NSFitPagination]; [[NSPrintInfo sharedPrintInfo] setHorizontallyCentered:NO]; @@ -1861,7 +1868,10 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) return; } if([charactersIgnMod isEqualToString:@"0"]) { // reset font to default + BOOL editableStatus = [self isEditable]; + [self setEditable:YES]; [self setFont:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPCustomQueryEditorFont]]]; + [self setEditable:editableStatus]; return; } } diff --git a/Source/TableDump.m b/Source/TableDump.m index 78ae1a41..fb42c7f2 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -742,7 +742,7 @@ [tableDocumentInstance setDatabases:self]; // Update current selected database - [tableDocumentInstance refreshCurrentDatabase]; + [tableDocumentInstance performSelector:@selector(refreshCurrentDatabase) withObject:nil afterDelay:0.1]; // Update current database tables [tablesListInstance updateTables:self]; |