From 88cbff3fd948c261014d4c88ea62b336f0dce4b1 Mon Sep 17 00:00:00 2001 From: ubbo Date: Tue, 6 Dec 2011 00:52:51 +0000 Subject: correct signal 'modification changed' also for opened documents git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@665 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'textedit.cpp') diff --git a/textedit.cpp b/textedit.cpp index 3e78293..f69715b 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -84,7 +84,7 @@ void TextEdit::open() tabWidget->setCurrentIndex(tabWidget->count() - 1); QApplication::restoreOverrideCursor(); page->getTextPage()->setFocus(); - connect(page->getTextPage(), SIGNAL(modificationChanged(bool)), this, SLOT(showModified())); + connect(page->getTextPage()->document(), SIGNAL(modificationChanged(bool)), this, SLOT(showModified())); //enableAction(true) } else { QMessageBox::warning(this, tr("Application"), -- cgit v1.2.3