comparison widgets/ImageDialog.cpp @ 344:832d246b327b

* better progress reporting in FileSource * fix set-to-default for audio dials with mappers
author Chris Cannam
date Fri, 04 Jan 2008 17:08:10 +0000
parents 07aa52466142
children 22b72f0f6a4e
comparison
equal deleted inserted replaced
343:1b6879d03cb6 344:832d246b327b
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, true); 189 m_remoteFile = new FileSource(url, FileSource::ProgressDialog);
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()));