aboutsummaryrefslogtreecommitdiff
path: root/src/filesel.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-05-28 07:44:26 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-05-28 07:44:26 +0000
commit51fcff7611d3181ccab788b7168e3722ae0f44be (patch)
treef43b467a6e35c378137166cf0a07f86ff19f16c9 /src/filesel.c
parent444afaba1eca6968d5c1596aaf8ded5d0f54001c (diff)
don't execute automatic incorporation while file selection dialog is open.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1741 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/filesel.c')
-rw-r--r--src/filesel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filesel.c b/src/filesel.c
index 1b255f03..745ecd1f 100644
--- a/src/filesel.c
+++ b/src/filesel.c
@@ -31,6 +31,7 @@
#include "alertpanel.h"
#include "utils.h"
#include "prefs_common.h"
+#include "inc.h"
static GSList *filesel_select_file_full (const gchar *title,
const gchar *file,
@@ -125,6 +126,8 @@ static GSList *filesel_select_file_full(const gchar *title, const gchar *file,
change_dir(prev_dir);
g_free(prev_dir);
+ inc_lock();
+
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
list = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(dialog));
if (list) {
@@ -136,6 +139,8 @@ static GSList *filesel_select_file_full(const gchar *title, const gchar *file,
}
}
+ inc_unlock();
+
if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
save_expander_expanded =
filesel_save_expander_get_expanded(dialog);