From 5fb8553213994e031467ba14b92a9c1319d28f83 Mon Sep 17 00:00:00 2001 From: srit Date: Sun, 20 Mar 2011 20:00:13 +0000 Subject: [PATCH] Corrected bug when opening unexisting file (introduced by myself in version 1.52) --- vv/vvMainWindow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.47.1