From dbeaa3ea9835fa80c7410474d96ae3c27d41d1dd Mon Sep 17 00:00:00 2001 From: giantpune Date: Sun, 29 May 2011 01:01:11 +0000 Subject: [PATCH] *ohneschwanzenegger: use busy cursor when writing a 500MiB file *nandExtract: remove unused save functions git-svn-id: http://wiiqt.googlecode.com/svn/trunk@102 389f4c8b-5dfe-645f-db0e-df882bc27289 --- nandExtract/nandExtract.pro | 1 - ohneschwanzenegger/mainwindow.cpp | 3 +++ ohneschwanzenegger/newnandbin.cpp | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nandExtract/nandExtract.pro b/nandExtract/nandExtract.pro index 89e5f5b..fa43919 100755 --- a/nandExtract/nandExtract.pro +++ b/nandExtract/nandExtract.pro @@ -9,7 +9,6 @@ SOURCES += main.cpp \ ../WiiQt/tiktmd.cpp \ ../WiiQt/nandbin.cpp \ ../WiiQt/tools.cpp \ - ../WiiQt/savebanner.cpp \ ../WiiQt/aes.c \ ../WiiQt/sha1.c \ nandthread.cpp \ diff --git a/ohneschwanzenegger/mainwindow.cpp b/ohneschwanzenegger/mainwindow.cpp index bca893c..9bb2138 100644 --- a/ohneschwanzenegger/mainwindow.cpp +++ b/ohneschwanzenegger/mainwindow.cpp @@ -951,12 +951,15 @@ void MainWindow::on_actionFormat_triggered() QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) != QMessageBox::Yes ) return; + setCursor( Qt::BusyCursor ); ShowMessage( "Formatting nand..." ); if( !nand.Format() ) { + unsetCursor(); ShowMessage( "Error! This nand may be broken now :(" ); return; } + unsetCursor(); //add folders to root if( !nand.CreateEntry( "/sys", 0, 0, NAND_DIR, NAND_RW, NAND_RW, 0 ) diff --git a/ohneschwanzenegger/newnandbin.cpp b/ohneschwanzenegger/newnandbin.cpp index 7286bf2..ebe98b5 100644 --- a/ohneschwanzenegger/newnandbin.cpp +++ b/ohneschwanzenegger/newnandbin.cpp @@ -186,9 +186,11 @@ void NewNandBin::on_buttonBox_accepted() boots.clear(); return; } + setCursor( Qt::BusyCursor ); if( !nand.CreateNew( ui->lineEdit_dest->text(), keys, boots, BadBlocks() ) ) { qDebug() << "error creating nand.bin"; + unsetCursor(); keys.clear(); boots.clear(); return; @@ -196,10 +198,12 @@ void NewNandBin::on_buttonBox_accepted() //qDebug() << "created nand, trying to add default entries"; if( !CreateDefaultEntries() ) { + unsetCursor(); keys.clear(); boots.clear(); return; } + unsetCursor(); ret = ui->lineEdit_dest->text(); }