mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-14 13:15:14 +03:00
If a full directory path is pasted in the File Name input and it's opened it will try to first open that directory, if valid it will open (SpartanJ/ecode#872).
This commit is contained in:
@@ -623,6 +623,20 @@ void UIFileDialog::open() {
|
||||
if ( usingNativeFileDialog() )
|
||||
return;
|
||||
|
||||
std::string fileText = mFile->getText().toUtf8();
|
||||
|
||||
if ( allowFolderSelect() && FileSystem::isDirectory( fileText ) ) {
|
||||
setCurPath( fileText );
|
||||
|
||||
sendCommonEvent( Event::OpenFile );
|
||||
|
||||
disableButtons();
|
||||
|
||||
closeWindow();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
auto fullPath( getFullPath() );
|
||||
|
||||
if ( mMultiView->getSelection().isEmpty() &&
|
||||
|
||||
Reference in New Issue
Block a user