r17808 by fschmid - Fixed Bug #10751: "reverting to saved version don`t close document window"

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 14 20:36:29 UTC 2012


Author: fschmid
Date: Sun Oct 14 20:36:28 2012
New Revision: 17808

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17808
Log:
Fixed Bug #10751: "reverting to saved version don`t close document window"

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17808&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Sun Oct 14 20:36:28 2012
@@ -4465,12 +4465,15 @@
 {
 	if ((doc->hasName) && (doc->isModified()) && (!doc->masterPageMode()))
 	{
+		ScribusWin* tw = ActWin;
 		int t = QMessageBox::warning(this, CommonStrings::trWarning, "<qt>" +
 								 QObject::tr("The changes to your document have not been saved and you have requested to revert them. Do you wish to continue?") + "</qt>",
 								 QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
 		if (t == QMessageBox::No)
 			return;
 
+		mdiArea->setActiveSubWindow(tw->getSubWin());
+		ActWin = tw;
 		QString fn(doc->DocName);
 		doc->setModified(false);
 		if (doc==storyEditor->currentDocument())




More information about the scribus-commit mailing list