Skip to content
Snippets Groups Projects
Commit 07e49d7a authored by BIOPZ-Johner Niklaus's avatar BIOPZ-Johner Niklaus
Browse files

Set title to filename when loading an image from the file browser or

from the command line using the FileLoader.
parent 4199c308
No related branches found
No related tags found
No related merge requests found
...@@ -261,7 +261,7 @@ gfx::GfxObjP FileLoader::TryLoadMap(const QString& filename, io::MapIOHandlerPtr ...@@ -261,7 +261,7 @@ gfx::GfxObjP FileLoader::TryLoadMap(const QString& filename, io::MapIOHandlerPtr
//FIXME ImageHandle should not be destroyed at the end of method //FIXME ImageHandle should not be destroyed at the end of method
//therefore hack with list //therefore hack with list
loaded_images_.append(map); loaded_images_.append(map);
GostyApp::Instance()->CreateDataViewer(loaded_images_.last()); GostyApp::Instance()->CreateDataViewer(loaded_images_.last(),filename);
throw io::IOFileAlreadyLoadedException("Loaded in DataViewer"); throw io::IOFileAlreadyLoadedException("Loaded in DataViewer");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment