From: srit Date: Sun, 20 Mar 2011 20:00:13 +0000 (+0000) Subject: Corrected bug when opening unexisting file (introduced by myself in version 1.52) X-Git-Tag: v1.2.0~148 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5fb8553213994e031467ba14b92a9c1319d28f83;p=clitk.git Corrected bug when opening unexisting file (introduced by myself in version 1.52) --- diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 681d30e..fb76458 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -828,7 +828,7 @@ void vvMainWindow::LoadImages(std::vector files, LoadedImageType fi else { SetImageSucceed = imageManager->SetImages(files,filetype, number); } - if (SetImageSucceed == false) { + if (!SetImageSucceed) { QApplication::restoreOverrideCursor(); QString error = "Cannot open file \n"; error += imageManager->GetLastError().c_str(); @@ -902,8 +902,8 @@ void vvMainWindow::LoadImages(std::vector files, LoadedImageType fi this,SLOT(ChangeImageWithIndexOffset(vvSlicerManager*,int,int))); connect(mSlicerManagers.back(),SIGNAL(LandmarkAdded()),landmarksPanel,SLOT(AddPoint())); InitSlicers(); + numberofsuccesulreads++; } - numberofsuccesulreads++; } } if (numberofsuccesulreads) {