mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-14 13:15:14 +03:00
Fix crash when drag & dropping images into ecode.
Fix Windows temp path resolution.
This commit is contained in:
@@ -2367,7 +2367,7 @@ void App::loadImageFromMedium( const std::string& path, bool isMemory, bool forc
|
||||
tab->setTooltipText( path );
|
||||
auto icon = findIcon( "filetype-" + ext );
|
||||
tab->setIcon( icon ? icon : findIcon( "file" ) );
|
||||
if ( mConfig.editor.syncProjectTreeWithEditor ) {
|
||||
if ( mProjectTreeView && mConfig.editor.syncProjectTreeWithEditor ) {
|
||||
mProjectTreeView->setFocusOnSelection( false );
|
||||
if ( !mCurrentProject.empty() && String::startsWith( path, mCurrentProject ) ) {
|
||||
mProjectTreeView->openRowWithPath( path.substr( mCurrentProject.size() ) );
|
||||
|
||||
Reference in New Issue
Block a user