Commit c1a09f04 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'Hide_Dialog_After_selection' into 'master'

Hide File Picker after file selection.

Closes #26

See merge request !191
parents 7c9360c0 f4d0e0ca
......@@ -13,6 +13,11 @@ class LoadFromPluginThread : public OpenFlipperThread
Q_OBJECT
public:
/** \brief Struct containing all relevant information about a load operation.
*
* Contains the file plugin which will load the file, Target data type and filename
*/
struct LoadInfos
{
FileInterface* plugin;
......
......@@ -268,6 +268,8 @@ void LoadWidget::loadFile(){
pluginForExtension_[ ext1 ] = j;
}
hide();
//emit load signal
if ( pluginForExtension_.find( ext1 ) != pluginForExtension_.end() ){
emit load(filename, pluginForExtension_[ ext1 ]);
......@@ -350,6 +352,8 @@ void LoadWidget::saveFile(){
return; //abort if users doesn't want to overwrite
}
hide();
const std::map< QString, int >::iterator saving_plugin =
pluginForExtension_.find( fi.suffix() );
if ( saving_plugin != pluginForExtension_.end() ){
......
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