r21961 by craig - Fix r21958, wrong line was changed
scribus-commit
scribus-commit at lists.scribus.net
Fri Apr 21 18:25:38 UTC 2017
Author: craig
Date: Fri Apr 21 18:25:38 2017
New Revision: 21961
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21961
Log:
Fix r21958, wrong line was changed
Modified:
trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
Modified: trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21961&path=/trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pdf/importpdf.cpp Fri Apr 21 18:25:38 2017
@@ -190,7 +190,7 @@
baseFile = QDir::cleanPath(QDir::toNativeSeparators(fi.absolutePath()+"/"));
if ( showProgress )
{
- ScribusMainWindow* mw = m_Doc->scMW();
+ ScribusMainWindow* mw = (m_Doc==0) ? ScCore->primaryMainWindow() : m_Doc->scMW();
progressDialog = new MultiProgressDialog( tr("Importing: %1").arg(fi.fileName()), CommonStrings::tr_Cancel, mw );
QStringList barNames, barTexts;
barNames << "GI";
@@ -409,7 +409,7 @@
if (progressDialog)
progressDialog->hide();
qApp->changeOverrideCursor(QCursor(Qt::ArrowCursor));
- ScribusMainWindow* mw = (m_Doc==0) ? ScCore->primaryMainWindow() : m_Doc->scMW();
+ ScribusMainWindow* mw = m_Doc->scMW();
bool ok;
QString text = QInputDialog::getText(mw, tr("Open PDF-File"), tr("Password"), QLineEdit::Normal, "", &ok);
if (ok && !text.isEmpty())
More information about the scribus-commit
mailing list