forked from qt-creator/qt-creator
BinEditor: Proliferate FilePath use
Change-Id: I1676ab03257b5acdc1f67e25f419939939707d53 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -234,7 +234,7 @@ public:
|
||||
{
|
||||
QTC_ASSERT(!autoSave, return true); // bineditor does not support autosave - it would be a bit expensive
|
||||
const FilePath &fileNameToUse = filePath.isEmpty() ? this->filePath() : filePath;
|
||||
if (m_widget->save(errorString, this->filePath().toString(), fileNameToUse.toString())) {
|
||||
if (m_widget->save(errorString, this->filePath(), fileNameToUse)) {
|
||||
setFilePath(fileNameToUse);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user