r19561 by jghali - fix #12746 patch brokenness on Windows

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 7 22:12:58 UTC 2014


Author: jghali
Date: Tue Oct  7 22:12:58 2014
New Revision: 19561

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19561
Log:
fix #12746 patch brokenness on Windows

Modified:
    branches/Version14x/Scribus/scribus/scribus.cpp

Modified: branches/Version14x/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19561&path=/branches/Version14x/Scribus/scribus/scribus.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scribus.cpp (original)
+++ branches/Version14x/Scribus/scribus/scribus.cpp Tue Oct  7 22:12:58 2014
@@ -3922,6 +3922,7 @@
 	// The goal of this part of code is to disallow user to open one
 	// doc multiple times.
 	QString FName = fi.absoluteFilePath();
+	QString platfName(QDir::toNativeSeparators(FName));
 	uint windowCount = windows.count();
 	for ( uint i = 0; i < windowCount; ++i )
 	{
@@ -3930,7 +3931,7 @@
 		if (mx && mx->doc()->isModified() && docNameUnmodified.endsWith("*"))
 			docNameUnmodified.resize(docNameUnmodified.length() - 1);
 
-		if (docNameUnmodified == FName)
+		if (docNameUnmodified == platfName)
 		{
 			qApp->restoreOverrideCursor();
 			QMessageBox::information(this, tr("Document is already opened"),




More information about the scribus-commit mailing list