Browse Source

Fixed linux save dialogs.

marksibly 8 years ago
parent
commit
8fbf08382c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      modules/std/requesters/native/requesters_linux.cpp

+ 5 - 1
modules/std/requesters/native/requesters_linux.cpp

@@ -38,7 +38,11 @@ bbString bbRequesters::RequestFile( bbString title,bbString exts,bbBool save,bbS
 
 	if( path=="" ) path=".";
 		
-	return tinyfd_openFileDialog( bbCString( title ),bbCString( path ),0,0,0,0 );
+	if( save ){
+		return tinyfd_saveFileDialog( bbCString( title ),bbCString( path ),0,0,0 );
+	}else{
+		return tinyfd_openFileDialog( bbCString( title ),bbCString( path ),0,0,0,0 );
+	}
 }
 
 bbString bbRequesters::RequestDir( bbString title,bbString dir ){