We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e57b1 commit af4939fCopy full SHA for af4939f
source/MRCommonPlugins/ViewerButtons/MRIOFilesMenuItems.cpp
@@ -640,6 +640,7 @@ bool SaveObjectMenuItem::action()
640
| IOFilters( baseFilters.begin() + firstFilterNum + 1, baseFilters.end() );
641
}
642
643
+ auto name = objs[0]->name(); // won't be able to get after moving objs into callback
644
saveFileDialogAsync( [objs = std::move( objs ), objType, settingsManager] ( const std::filesystem::path& savePath0 ) mutable
645
{
646
if ( savePath0.empty() )
@@ -690,7 +691,7 @@ bool SaveObjectMenuItem::action()
690
691
};
692
} );
693
}, {
- .fileName = objs[0]->name(),
694
+ .fileName = std::move( name ),
695
.filters = std::move( filters ),
696
697
return false;
0 commit comments