diff --git a/avogadro/qtplugins/playertool/playertool.cpp b/avogadro/qtplugins/playertool/playertool.cpp index f0006a9b98..743e45e909 100644 --- a/avogadro/qtplugins/playertool/playertool.cpp +++ b/avogadro/qtplugins/playertool/playertool.cpp @@ -248,7 +248,7 @@ void PlayerTool::recordMovie() QFileInfo fileInfo(baseName); if (!fileInfo.suffix().isEmpty()) - baseName = fileInfo.canonicalPath() + "/" + fileInfo.baseName(); + baseName = fileInfo.absolutePath() + "/" + fileInfo.baseName(); bool bonding = m_dynamicBonding->isChecked(); int numberLength = static_cast( diff --git a/avogadro/qtplugins/surfaces/surfaces.cpp b/avogadro/qtplugins/surfaces/surfaces.cpp index 4a41173f81..8642aa20dd 100644 --- a/avogadro/qtplugins/surfaces/surfaces.cpp +++ b/avogadro/qtplugins/surfaces/surfaces.cpp @@ -392,7 +392,7 @@ void Surfaces::recordMovie() QFileInfo fileInfo(baseName); if (!fileInfo.suffix().isEmpty()) - baseName = fileInfo.canonicalPath() + "/" + fileInfo.baseName(); + baseName = fileInfo.absolutePath() + "/" + fileInfo.baseName(); m_baseFileName = baseName; m_numberLength = static_cast(