aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun
diff options
context:
space:
mode:
authorakir <akir>2004-09-29 00:51:29 (GMT)
committerakir <akir>2004-09-29 00:51:29 (GMT)
commit07f1a6e4576b415f991c314c23271754e997c40c (patch)
treeb86d0da24483c23e3fb0f05fe6b12fcd9b1c545f /util/fbrun
parent15547c4179cae40e33fe7f62daafd4d54e97e8bb (diff)
downloadfluxbox-07f1a6e4576b415f991c314c23271754e997c40c.zip
fluxbox-07f1a6e4576b415f991c314c23271754e997c40c.tar.bz2
fixes #1026929 (sourceforge)
Diffstat (limited to 'util/fbrun')
-rw-r--r--util/fbrun/FbRun.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index 09efd12..0199f88 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbRun.cc,v 1.31 2004/08/31 15:26:40 rathnor Exp $ 22// $Id: FbRun.cc,v 1.32 2004/09/29 00:51:29 akir Exp $
23 23
24#include "FbRun.hh" 24#include "FbRun.hh"
25 25
@@ -166,7 +166,11 @@ bool FbRun::loadHistory(const char *filename) {
166 ifstream infile(filename); 166 ifstream infile(filename);
167 if (!infile) { 167 if (!infile) {
168 //even though we fail to load file, we should try save to it 168 //even though we fail to load file, we should try save to it
169 m_history_file = filename; 169 ofstream outfile(filename);
170 if (outfile) {
171 m_history_file = filename;
172 return true;
173 }
170 return false; 174 return false;
171 } 175 }
172 // clear old history and load new one from file 176 // clear old history and load new one from file