aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--textedit.cpp2
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;
}