diff widgets/ImageDialog.cpp @ 317:e251c3599ea8

* Make RemoteFile far more pervasive, and use it for local files as well so that we can handle both transparently. Make it shallow copy with reference counting, so it can be used by value without having to worry about the cache file lifetime. Use RemoteFile for MainWindow file-open functions, etc
author Chris Cannam
date Thu, 18 Oct 2007 15:31:20 +0000
parents 013a37723c0a
children e9fe3923bdf4
line wrap: on
line diff
--- a/widgets/ImageDialog.cpp	Thu Oct 18 10:15:07 2007 +0000
+++ b/widgets/ImageDialog.cpp	Thu Oct 18 15:31:20 2007 +0000
@@ -187,7 +187,7 @@
                                       .arg(url.scheme()));
             } else {
                 m_remoteFile = new RemoteFile(url);
-                m_remoteFile->wait();
+                m_remoteFile->waitForData();
                 if (!m_remoteFile->isOK()) {
                     QMessageBox::critical(this, tr("File download failed"),
                                           tr("Failed to download URL \"%1\": %2")