[f-spot/FSPOT_0_6_0_STABLE] fix import preferences saving
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] fix import preferences saving
- Date: Wed, 12 Aug 2009 08:02:00 +0000 (UTC)
commit b45f477ccb2966eaf1aec37ce1abf03b57815d0b
Author: Stephane Delcroix <stephane delcroix org>
Date: Wed Aug 12 10:00:37 2009 +0200
fix import preferences saving
Preferences only have to be saved if we're running an import dialog. Handling the save in the dialog OK response
src/ImportCommand.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ImportCommand.cs b/src/ImportCommand.cs
index 8d106f0..47f84a6 100644
--- a/src/ImportCommand.cs
+++ b/src/ImportCommand.cs
@@ -522,10 +522,9 @@ public class ImportCommand : GladeDialog
importer.Finish ();
importer = null;
- SavePreferences ();
}
- private void SavePreferences ()
+ void SavePreferences ()
{
Preferences.Set(Preferences.IMPORT_COPY_FILES, copy_check.Active);
Preferences.Set(Preferences.IMPORT_INCLUDE_SUBFOLDERS, recurse_check.Active);
@@ -694,6 +693,7 @@ public class ImportCommand : GladeDialog
if (response == ResponseType.Ok) {
this.UpdateTagStore (tag_entry.GetTypedTagNames ());
+ SavePreferences ();
this.Finish ();
if (tags_selected != null && tags_selected.Count > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]