From 7dc366e5dfe5a8c33ffe016331b59308692fd23d Mon Sep 17 00:00:00 2001 From: Luis Lucas Date: Tue, 28 Jan 2014 02:04:59 +0000 Subject: [PATCH] Fix wait cursor in file resolution dialog. --- source/ImageInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ImageInterface.cpp b/source/ImageInterface.cpp index 825355d..1ad567e 100644 --- a/source/ImageInterface.cpp +++ b/source/ImageInterface.cpp @@ -70,8 +70,6 @@ ImageInterface::~ImageInterface() bool ImageInterface::loadFile( const QString &fileName ) { - QApplication::setOverrideCursor( Qt::WaitCursor ); - ConfigureResolutionDialog resolutionDialog; if( resolutionDialog.exec() == QDialog::Rejected ) @@ -79,6 +77,8 @@ bool ImageInterface::loadFile( const QString &fileName ) return false; } + QApplication::setOverrideCursor( Qt::WaitCursor ); + m_currStream.init( fileName, resolutionDialog.getResolution().width(), resolutionDialog.getResolution().height() ); m_currStream.readFrame();