From 07e49d7a21484b913ff70f07cf854181ca51d03a Mon Sep 17 00:00:00 2001 From: Niklaus Johner <niklaus.johner@unibas.ch> Date: Tue, 3 Mar 2015 11:08:01 +0100 Subject: [PATCH] Set title to filename when loading an image from the file browser or from the command line using the FileLoader. --- modules/gui/src/file_loader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/src/file_loader.cc b/modules/gui/src/file_loader.cc index 99a3da1f0..c9d958acf 100644 --- a/modules/gui/src/file_loader.cc +++ b/modules/gui/src/file_loader.cc @@ -261,7 +261,7 @@ gfx::GfxObjP FileLoader::TryLoadMap(const QString& filename, io::MapIOHandlerPtr //FIXME ImageHandle should not be destroyed at the end of method //therefore hack with list loaded_images_.append(map); - GostyApp::Instance()->CreateDataViewer(loaded_images_.last()); + GostyApp::Instance()->CreateDataViewer(loaded_images_.last(),filename); throw io::IOFileAlreadyLoadedException("Loaded in DataViewer"); } } -- GitLab