Mercurial > hg > svgui
comparison widgets/ImageDialog.cpp @ 322:07aa52466142
* FileSource -> default to showProgress = false
author | Chris Cannam |
---|---|
date | Thu, 01 Nov 2007 10:45:28 +0000 |
parents | e9fe3923bdf4 |
children | 832d246b327b |
comparison
equal
deleted
inserted
replaced
321:973a0272b712 | 322:07aa52466142 |
---|---|
184 if (!FileSource::canHandleScheme(url)) { | 184 if (!FileSource::canHandleScheme(url)) { |
185 QMessageBox::critical(this, tr("Unsupported scheme in URL"), | 185 QMessageBox::critical(this, tr("Unsupported scheme in URL"), |
186 tr("The URL scheme \"%1\" is not supported") | 186 tr("The URL scheme \"%1\" is not supported") |
187 .arg(url.scheme())); | 187 .arg(url.scheme())); |
188 } else { | 188 } else { |
189 m_remoteFile = new FileSource(url); | 189 m_remoteFile = new FileSource(url, true); |
190 m_remoteFile->waitForData(); | 190 m_remoteFile->waitForData(); |
191 if (!m_remoteFile->isOK()) { | 191 if (!m_remoteFile->isOK()) { |
192 QMessageBox::critical(this, tr("File download failed"), | 192 QMessageBox::critical(this, tr("File download failed"), |
193 tr("Failed to download URL \"%1\": %2") | 193 tr("Failed to download URL \"%1\": %2") |
194 .arg(url.toString()).arg(m_remoteFile->getErrorString())); | 194 .arg(url.toString()).arg(m_remoteFile->getErrorString())); |