about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-06 04:58:34 +0200
committerhut <hut@lavabit.com>2012-08-06 04:58:34 +0200
commit13cb3fc49c07ba45f12508000ac615ff2e9b3e23 (patch)
treef22016b2829bbfe04a60636f856d829e62266845
parent47e9517c8f7e870d01cf469faa94e72b1bc5d9b1 (diff)
downloadranger-13cb3fc49c07ba45f12508000ac615ff2e9b3e23.tar.gz
widgets.titlebar: fixed crash on ':set dirname_in_tabs True'
-rw-r--r--ranger/gui/widgets/titlebar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py
index 04fdb7b6..d37a2fd3 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -136,7 +136,7 @@ class TitleBar(Widget):
 	def _get_tab_text(self, tabname):
 		result = ' ' + str(tabname)
 		if self.settings.dirname_in_tabs:
-			dirname = basename(self.fm.tabs[tabname])
+			dirname = basename(self.fm.tabs[tabname].path)
 			if not dirname:
 				result += ":/"
 			elif len(dirname) > 15: