diff options
| author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-02-20 00:26:34 +0100 |
|---|---|---|
| committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-02-20 00:26:34 +0100 |
| commit | 3968165a3503ad85ef150a46e4e50050bb69add0 (patch) | |
| tree | f801fb5c0eaefad2f7b8ded172ace1ccb00310e1 /textedit.cpp | |
| parent | show/hide steganography menu after closing settings (diff) | |
| download | gpg4usb-3968165a3503ad85ef150a46e4e50050bb69add0.tar.gz gpg4usb-3968165a3503ad85ef150a46e4e50050bb69add0.zip | |
fix npe
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@814 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
| -rw-r--r-- | textedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/textedit.cpp b/textedit.cpp index 55ccf86..39039f2 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -150,7 +150,7 @@ bool TextEdit::saveFile(const QString &fileName) bool TextEdit::saveAs() { - if (tabWidget->count() == 0) { + if (tabWidget->count() == 0 || curPage() == 0) { return true; } |
