[f-spot/cleanup-backend: 15/24] Introduce ActiveSource in MainWindow
- From: Mike Gemünde <mgemuende src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/cleanup-backend: 15/24] Introduce ActiveSource in MainWindow
- Date: Mon, 19 Jul 2010 06:42:35 +0000 (UTC)
commit 9fc500a7e896d6f335be272fa198116c4ae35095
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 d40a144..b9fb4a8 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -370,14 +370,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]