summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-06-06 23:22:49 +0200
committerYorhel <git@yorhel.nl>2009-06-06 23:26:05 +0200
commit26c77cfc148c057140807820276844fb6376cb42 (patch)
treecde75cc282f81dcc1966914ad7e85f020df4e117
parente5cc7703d7d926a1765fccd123df2b81f3368640 (diff)
Return to previously opened directory on failed recalculation
...instead of displaying an empty and unusable browser.
-rw-r--r--ChangeLog1
-rw-r--r--src/calc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bc7a44e..71a2be3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ git - ?
- Removed reliance of dirfd()
- Fixed non-void return in void delete_process()
- Fixed several tiny memory leaks
+ - Return to previously opened directory on failed recalculation
1.5 - 2009-05-02
- Fixed incorrect apparent size on directory refresh
diff --git a/src/calc.c b/src/calc.c
index cceb9a9..fff2cd6 100644
--- a/src/calc.c
+++ b/src/calc.c
@@ -428,7 +428,7 @@ calc_fail:
if(orig == NULL)
return 1;
else {
- browse_init(NULL);
+ browse_init(orig);
return 0;
}
}