[f-spot: 9/16] moved the UpdateQuery() call to MainWindow
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot: 9/16] moved the UpdateQuery() call to MainWindow
- Date: Tue, 25 May 2010 12:48:56 +0000 (UTC)
commit f7733bce83109156787589dd82be5639c050f11d
Author: Anton Keks <anton azib net>
Date: Mon Aug 3 00:18:47 2009 +0300
moved the UpdateQuery() call to MainWindow
src/MainWindow.cs | 1 +
src/PhotoVersionCommands.cs | 1 -
2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index 86c0e80..d0b44a8 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -1721,6 +1721,7 @@ namespace FSpot
{
PhotoVersionCommands.Detach cmd = new PhotoVersionCommands.Detach ();
cmd.Execute (db.Photos, CurrentPhoto, GetToplevel (null));
+ UpdateQuery ();
}
void HandleRenameVersionCommand (object obj, EventArgs args)
diff --git a/src/PhotoVersionCommands.cs b/src/PhotoVersionCommands.cs
index aa7ae3d..0305ca9 100644
--- a/src/PhotoVersionCommands.cs
+++ b/src/PhotoVersionCommands.cs
@@ -207,7 +207,6 @@ public class PhotoVersionCommands
new_photo.CopyAttributesFrom (photo.DefaultVersion);
photo.DeleteVersion (photo.DefaultVersionId, false, true);
store.Commit (new Photo[] {new_photo, photo});
- MainWindow.Toplevel.UpdateQuery ();
return true;
}
} catch (Exception e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]