Call dialog box before open the raw sequence
This commit is contained in:
1 parent
6398737651
commit
e15961ca71
1 file changed
+9
-1
@@ -26,6 +26,7 @@
|
||||
#include <QBitmap>
|
||||
#include <QColor>
|
||||
|
||||
#include "ConfigureResolutionDialog.h"
|
||||
#include "ImageInterface.h"
|
||||
#include "viewarea.h"
|
||||
|
||||
@@ -70,7 +71,14 @@ bool ImageInterface::loadFile( const QString &fileName )
|
||||
{
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
|
||||
m_currStream.init( fileName, 1024, 768 );
|
||||
ConfigureResolutionDialog resolutionDialog;
|
||||
|
||||
if( resolutionDialog.exec() == QDialog::Rejected )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
m_currStream.init( fileName, resolutionDialog.getResolution().width(), resolutionDialog.getResolution().height() );
|
||||
|
||||
m_currStream.readFrame();
|
||||
if( m_currStream.checkErrors( READING ) )
|
||||
|
||||
Reference in new issue
Block a user