Skip to content

Commit df40eab

Browse files
committedOct 2, 2018
[processing] Make annoying modal progress dialog for algorithms match
size/position to the algorithm dialog itself We can't get rid off this dialog, but let's at least position/size it nicely...
1 parent 68dee5b commit df40eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/processing/qgsprocessingalgorithmdialogbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ QDialog *QgsProcessingAlgorithmDialogBase::createProgressDialog()
389389
QgsProcessingAlgorithmProgressDialog *dialog = new QgsProcessingAlgorithmProgressDialog( this );
390390
dialog->setWindowModality( Qt::ApplicationModal );
391391
dialog->setWindowTitle( windowTitle() );
392+
dialog->setGeometry( geometry() ); // match size/position to this dialog
392393
connect( progressBar, &QProgressBar::valueChanged, dialog->progressBar(), &QProgressBar::setValue );
393394
connect( dialog->cancelButton(), &QPushButton::clicked, buttonCancel, &QPushButton::click );
394395
dialog->logTextEdit()->setHtml( txtLog->toHtml() );
@@ -580,7 +581,6 @@ QgsProcessingAlgorithmProgressDialog::QgsProcessingAlgorithmProgressDialog( QWid
580581
: QDialog( parent )
581582
{
582583
setupUi( this );
583-
QgsGui::enableAutoGeometryRestore( this );
584584
}
585585

586586
QProgressBar *QgsProcessingAlgorithmProgressDialog::progressBar()

0 commit comments

Comments
 (0)
Please sign in to comment.