diff --git a/GUI/aliza.cpp b/GUI/aliza.cpp index 91d8192..0f88c0d 100644 --- a/GUI/aliza.cpp +++ b/GUI/aliza.cpp @@ -901,12 +901,6 @@ void Aliza::add_histogram(ImageVariant * v, QProgressDialog * pb, bool check_set while (!t->isFinished()) { delay1(100); - if (pb && pb->wasCanceled()) - { - t->exit(0); - lock0 = false; - exit(0); - } } t->gen_pixmap(); const QString tmp0 = t->get_error(); diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 9208708..350a634 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -1494,7 +1494,7 @@ void MainWindow::dropEvent(QDropEvent * e) } if (dcm_thread) { - disconnect(pb,SIGNAL(canceled()),this,SLOT(exit_null())); + disconnect(pb, SIGNAL(canceled()), this, SLOT(exit_null())); } pb->close(); delete pb; @@ -1587,7 +1587,7 @@ void MainWindow::load_any() l.clear(); if (dcm_thread) { - disconnect(pb,SIGNAL(canceled()),this,SLOT(exit_null())); + disconnect(pb, SIGNAL(canceled()), this, SLOT(exit_null())); } pb->close(); delete pb;