diff --git a/source/ConfigureResolutionDialog.cpp b/source/ConfigureResolutionDialog.cpp index 66a2abb..5443526 100755 --- a/source/ConfigureResolutionDialog.cpp +++ b/source/ConfigureResolutionDialog.cpp @@ -34,9 +34,6 @@ ConfigureResolutionDialog::ConfigureResolutionDialog( QWidget *parent ) : setStandardResolutionSizes(); - if( objectName().isEmpty() ) - setObjectName( QStringLiteral( "ConfigureResolution" ) ); - // Config dialog setObjectName( QStringLiteral( "ConfigureResolution" ) ); @@ -162,6 +159,8 @@ ConfigureResolutionDialog::ConfigureResolutionDialog( QWidget *parent ) : connect( dialogButtonOkCancel, SIGNAL( accepted() ), this, SLOT( accept() ) ); connect( dialogButtonOkCancel, SIGNAL( rejected() ), this, SLOT( reject() ) ); + QMetaObject::connectSlotsByName(this); + } void ConfigureResolutionDialog::StandardResolutionSelection() diff --git a/source/ImageInterface.cpp b/source/ImageInterface.cpp index 1ad567e..4cdae3e 100644 --- a/source/ImageInterface.cpp +++ b/source/ImageInterface.cpp @@ -70,7 +70,7 @@ ImageInterface::~ImageInterface() bool ImageInterface::loadFile( const QString &fileName ) { - ConfigureResolutionDialog resolutionDialog; + ConfigureResolutionDialog resolutionDialog(this); if( resolutionDialog.exec() == QDialog::Rejected ) {