diff --git a/ohneschwanzenegger/mainwindow.cpp b/ohneschwanzenegger/mainwindow.cpp index 8dc2add..1e65ffd 100644 --- a/ohneschwanzenegger/mainwindow.cpp +++ b/ohneschwanzenegger/mainwindow.cpp @@ -295,7 +295,15 @@ void MainWindow::on_actionSetting_txt_triggered() QByteArray ba = nand.GetData( "/title/00000001/00000002/data/setting.txt" ); //read the current setting.txt ba = SettingTxtDialog::Edit( this, ba ); //call a dialog to edit that existing file and store the result in the same bytearray if( !ba.isEmpty() ) //if the dialog returned anything ( cancel wasnt pressed ) write that new setting.txt to the nand dump - nand.SetData( "/title/00000001/00000002/data/setting.txt", ba ); + { + if( !nand.SetData( "/title/00000001/00000002/data/setting.txt", ba ) + || !nand.WriteMetaData() ) + { + ShowMessage( tr( "Error writing setting.txt" ) ); + } + else + ShowMessage( tr( "Saved setting.txt" ) ); + } } //nand-dump -> flush