Commit 97920ec3 authored by Sylvain Thery's avatar Sylvain Thery

resolve save/cancel problem in viewer

parent e9902ae7
...@@ -188,7 +188,8 @@ void Viewer::cb_Save() ...@@ -188,7 +188,8 @@ void Viewer::cb_Save()
std::string filters("all (*.*);; map (*.map);; off (*.off);; ply (*.ply)") ; std::string filters("all (*.*);; map (*.map);; off (*.off);; ply (*.ply)") ;
std::string filename = selectFileSave("Save Mesh", "", filters) ; std::string filename = selectFileSave("Save Mesh", "", filters) ;
exportMesh(filename) ; if (!filename.empty())
exportMesh(filename) ;
} }
void Viewer::cb_keyPress(int keycode) void Viewer::cb_keyPress(int keycode)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment