mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
[win] Fix File > Export > Export As to other drive (fix #4607)
This only affects the Windows platform. Regression introduced in db639072f77daf724f9eeb0642d7de61924db973
This commit is contained in:
parent
8817724e44
commit
1ca4306f9d
@ -199,6 +199,12 @@ void ExportFileWindow::setOutputFilename(const std::string& pathAndFilename)
|
||||
else {
|
||||
m_outputPath = base::get_file_path(m_doc->filename());
|
||||
m_outputFilename = base::get_relative_path(pathAndFilename, base::get_file_path(m_doc->filename()));
|
||||
|
||||
// Cannot find a relative path (e.g. we selected other drive)
|
||||
if (m_outputFilename == pathAndFilename) {
|
||||
m_outputPath = base::get_file_path(pathAndFilename);
|
||||
m_outputFilename = base::get_file_name(pathAndFilename);
|
||||
}
|
||||
}
|
||||
|
||||
updateOutputFilenameEntry();
|
||||
|
Loading…
x
Reference in New Issue
Block a user