[f-spot/cleanup-backend: 4/23] Introduce ActiveSource in MainWindow
- From: Mike Gemünde <mgemuende src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/cleanup-backend: 4/23] Introduce ActiveSource in MainWindow
- Date: Fri, 16 Jul 2010 17:25:41 +0000 (UTC)
commit ee274d4fb86785c387af8afd32d6109ba737f612
Author: Mike Gemünde <mike gemuende de>
Date: Thu Jul 15 14:38:47 2010 +0200
Introduce ActiveSource in MainWindow
src/MainWindow.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index a8b8436..60d36ea 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -369,14 +369,15 @@ namespace FSpot
tag_selection_widget.RowActivated += HandleTagSelectionRowActivated;
LoadPreference (Preferences.TAG_ICON_SIZE);
-
- try {
+
+ query = App.Instance.ActiveSource.Photos as PhotoQuery;
+/* try {
query = new FSpot.PhotoQuery (Database.Photos);
} catch (System.Exception e) {
//FIXME assume any exception here is due to a corrupt db and handle that.
new RepairDbDialog (e, Database.Repair (), main_window);
query = new FSpot.PhotoQuery (Database.Photos);
- }
+ }*/
UpdateStatusLabel ();
query.Changed += HandleQueryChanged;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]