[gnome-commander] tabs: do not call for GnomeCmdFileSelector::update_direntry() empty tab
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] tabs: do not call for GnomeCmdFileSelector::update_direntry() empty tab
- Date: Sun, 20 Jun 2010 12:29:45 +0000 (UTC)
commit 3a7ff61eff7392111ec5f339282146c9244db2e6
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Jun 20 14:29:14 2010 +0200
tabs: do not call for GnomeCmdFileSelector::update_direntry() empty tab
src/gnome-cmd-file-selector.cc | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index c62b452..8245d76 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -214,7 +214,12 @@ inline void GnomeCmdFileSelector::update_files()
inline void GnomeCmdFileSelector::update_direntry()
{
- gchar *tmp = gnome_cmd_dir_get_display_path (get_directory());
+ GnomeCmdDir *dir = get_directory();
+
+ if (!dir)
+ return;
+
+ gchar *tmp = gnome_cmd_dir_get_display_path (dir);
g_return_if_fail (tmp != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]