aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-10-22 23:49:30 +0000
committerrowanbeentje <rowan@beent.je>2009-10-22 23:49:30 +0000
commit41b5cc6f8c339fee5af8ac8f07d3b81f9889b975 (patch)
tree4ea7d1110f1e132f4b27f58b4f27bd1f8a819b35 /Source/TableDocument.m
parent20baed5257ce1152c1f25c5a953ca821b50050db (diff)
downloadsequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.tar.gz
sequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.tar.bz2
sequelpro-41b5cc6f8c339fee5af8ac8f07d3b81f9889b975.zip
- Improve table and task redrawing during threaded table content loads
- Correctly update the table content count when duplicating a row, and cancelling the add. This addresses issue #440.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 1d95c695..daa8d049 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -211,7 +211,7 @@
// Set up the progress indicator layer - add to main window, change indicator color and size
[taskProgressLayer setHidden:YES];
[taskProgressLayer setFrame:[contentViewSplitter frame]];
- [[tableWindow contentView] addSubview:taskProgressLayer];
+ [[tableWindow contentView] addSubview:taskProgressLayer positioned:NSWindowAbove relativeTo:contentViewSplitter];
[taskProgressIndicator setForeColor:[NSColor whiteColor]];
}
@@ -1242,9 +1242,9 @@
* Sets the task percentage progress - the first call to this automatically
* switches the progress display to determinate.
*/
-- (void) setTaskPercentage:(NSNumber *)taskPercentage
+- (void) setTaskPercentage:(float)taskPercentage
{
- taskProgressValue = [taskPercentage floatValue];
+ taskProgressValue = taskPercentage;
if (taskProgressValue > taskDisplayLastValue + taskProgressValueDisplayInterval
|| taskProgressValue < taskDisplayLastValue - taskProgressValueDisplayInterval)
{