aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/textedit.cpp b/textedit.cpp
index 83dc676..10f4585 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -98,7 +98,7 @@ void TextEdit::open()
void TextEdit::save()
{
- if (tabWidget->count() == 0) {
+ if (tabWidget->count() == 0 || curPage() == 0) {
return;
}
@@ -335,7 +335,7 @@ EditorPage* TextEdit::curPage()
void TextEdit::quote()
{
- if (tabWidget->count() == 0) {
+ if (tabWidget->count() == 0 || curTextPage() == 0) {
return;
}