From fcf97db89e7e57601ba92d36402a5a35769f78fe Mon Sep 17 00:00:00 2001 From: "giantpune@gmail.com" Date: Tue, 3 May 2011 07:20:11 +0000 Subject: [PATCH] * ohneswanzenegger: dont try to write setting.txt if there is an error creating it git-svn-id: http://wiiqt.googlecode.com/svn/trunk@82 389f4c8b-5dfe-645f-db0e-df882bc27289 --- ohneschwanzenegger/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohneschwanzenegger/mainwindow.cpp b/ohneschwanzenegger/mainwindow.cpp index 591635c..cb8848b 100644 --- a/ohneschwanzenegger/mainwindow.cpp +++ b/ohneschwanzenegger/mainwindow.cpp @@ -299,7 +299,7 @@ void MainWindow::on_actionSetting_txt_triggered() if( !ba.isEmpty() ) //if the dialog returned anything ( cancel wasnt pressed ) write that new setting.txt to the nand dump { quint16 r = CreateIfNeeded( "/title/00000001/00000002/data/setting.txt", 0x1000, 1, NAND_FILE, NAND_READ, NAND_READ, NAND_READ ); - if( !nand.SetData( r, ba ) + if( !r || !nand.SetData( r, ba ) || !nand.WriteMetaData() ) { ShowMessage( tr( "Error writing setting.txt" ) );