aboutsummaryrefslogtreecommitdiff
path: root/system/pcmanfm/patches/0004-3582257-Open-entered-folder-button-do-nothing.patch
blob: 9b50ccb07839d8b4978a9cef902e5857961f2953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 119e52519cc50a34e99b60524eca856e0e0a835f Mon Sep 17 00:00:00 2001
From: Andriy Grytsenko <andrej@rep.kiev.ua>
Date: Wed, 14 Nov 2012 23:52:34 +0200
Subject: [PATCH 04/11] [#3582257]"Open entered folder" button do nothing

This should be done another way (as it is done in libfm-demo)
since until we activate entry the path in it isn't updated yet.
---
 src/main-win.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main-win.c b/src/main-win.c
index 4431106..b3e462a 100644
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -903,7 +903,7 @@ static void on_close_tab(GtkAction* act, FmMainWin* win)
 
 static void on_go(GtkAction* act, FmMainWin* win)
 {
-    fm_main_win_chdir(win, fm_path_entry_get_path(win->location));
+    fm_main_win_chdir_by_name(win, gtk_entry_get_text(GTK_ENTRY(win->location)));
 }
 
 static void _update_hist_buttons(FmMainWin* win)
-- 
1.8.0.1