[gnome-commander] Reuse existing dir instead of creating a new one in GnomeCmdMainWin::set_fs_directory_to_opposite()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Reuse existing dir instead of creating a new one in GnomeCmdMainWin::set_fs_directory_to_opposite()
- Date: Sat, 14 Aug 2010 16:20:16 +0000 (UTC)
commit 941fb63cf0f966d1667cbab7bbe3522c57d4836e
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Aug 14 18:17:21 2010 +0200
Reuse existing dir instead of creating a new one in GnomeCmdMainWin::set_fs_directory_to_opposite()
src/gnome-cmd-main-win.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index cbde6fc..89e8d59 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -1135,7 +1135,7 @@ void GnomeCmdMainWin::set_fs_directory_to_opposite(FileSelectorID fsID)
GnomeCmdFile *file = other->file_list()->get_selected_file();
if (file && file->info->type == GNOME_VFS_FILE_TYPE_DIRECTORY)
- dir = gnome_cmd_dir_new_from_info (file->info, dir);
+ dir = GNOME_CMD_IS_DIR (file) ? GNOME_CMD_DIR (file) : gnome_cmd_dir_new_from_info (file->info, dir);
}
fs->file_list()->set_connection(other->get_connection(), dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]