[gnome-commander/gcmd-1-3] GnomeCmdFileSelector: do not reset to the default dir when GnomeCmdFileSelector::set_connection()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-3] GnomeCmdFileSelector: do not reset to the default dir when GnomeCmdFileSelector::set_connection()
- Date: Tue, 3 Nov 2009 23:23:28 +0000 (UTC)
commit 0ef9a10ecc66879c8d1acea9574ae6a382bdad0f
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Nov 4 00:17:44 2009 +0100
GnomeCmdFileSelector: do not reset to the default dir when GnomeCmdFileSelector::set_connection()
src/gnome-cmd-file-selector.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 03738be..ec3bce2 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -1530,11 +1530,11 @@ void GnomeCmdFileSelector::set_connection (GnomeCmdCon *con, GnomeCmdDir *start_
if (get_connection() == con)
{
- if (!gnome_cmd_con_should_remember_dir (con))
- set_directory (gnome_cmd_con_get_default_dir (con));
+ if (start_dir)
+ set_directory (start_dir);
else
- if (start_dir)
- set_directory (start_dir);
+ if (!gnome_cmd_con_should_remember_dir (con))
+ set_directory (gnome_cmd_con_get_default_dir (con));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]