all repos — fluxbox @ 07f1a6e4576b415f991c314c23271754e997c40c

custom fork of the fluxbox windowmanager

fixes #1026929 (sourceforge)
akir akir
commit

07f1a6e4576b415f991c314c23271754e997c40c

parent

15547c4179cae40e33fe7f62daafd4d54e97e8bb

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M util/fbrun/FbRun.ccutil/fbrun/FbRun.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // 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"

@@ -166,7 +166,11 @@ return false;

ifstream infile(filename); if (!infile) { //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; } // clear old history and load new one from file