diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-29 21:20:46 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-29 21:20:46 +0000 |
commit | 877c2dcf68c4bbe8fcd5af5256d47a508444f705 (patch) | |
tree | 49ec7f870c183fcb5f14fc78a1b4bc7127c985eb /textedit.cpp | |
parent | allow decryption of empty messages (diff) | |
download | gpg4usb-877c2dcf68c4bbe8fcd5af5256d47a508444f705.tar.gz gpg4usb-877c2dcf68c4bbe8fcd5af5256d47a508444f705.zip |
qwaitcursor while saving file
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@456 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/textedit.cpp b/textedit.cpp index a92757e..170bb47 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -115,12 +115,14 @@ bool TextEdit::saveFile(const QString &fileName) QFile file(fileName); if (file.open(QIODevice::WriteOnly | QIODevice::Text)) { - QTextStream outputStream(&file); EditorPage *page = curPage(); + QTextStream outputStream(&file); + QApplication::setOverrideCursor(Qt::WaitCursor); outputStream << page->getTextPage()->toPlainText(); - + QApplication::restoreOverrideCursor(); QTextDocument *document = page->getTextPage()->document(); + document->setModified(false); int curIndex = tabWidget->currentIndex(); |