fixes #1026929 (sourceforge)
This commit is contained in:
parent
15547c4179
commit
07f1a6e457
1 changed files with 6 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: FbRun.cc,v 1.31 2004/08/31 15:26:40 rathnor Exp $
|
// $Id: FbRun.cc,v 1.32 2004/09/29 00:51:29 akir Exp $
|
||||||
|
|
||||||
#include "FbRun.hh"
|
#include "FbRun.hh"
|
||||||
|
|
||||||
|
@ -166,7 +166,11 @@ bool FbRun::loadHistory(const char *filename) {
|
||||||
ifstream infile(filename);
|
ifstream infile(filename);
|
||||||
if (!infile) {
|
if (!infile) {
|
||||||
//even though we fail to load file, we should try save to it
|
//even though we fail to load file, we should try save to it
|
||||||
m_history_file = filename;
|
ofstream outfile(filename);
|
||||||
|
if (outfile) {
|
||||||
|
m_history_file = filename;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// clear old history and load new one from file
|
// clear old history and load new one from file
|
||||||
|
|
Loading…
Reference in a new issue