desktop: take an std::string in MainWindow::setCurrentFile()

This fixes a crash condition when opening the cloud from
desktop: The old code passed a NULL pointer that was then
assigned to an std::string, which is not supported.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-24 22:56:41 +01:00 committed by bstoeger
parent 6aca76c342
commit 2c490fcbbb
2 changed files with 7 additions and 7 deletions

View file

@ -181,7 +181,7 @@ private:
bool askSaveChanges();
bool okToClose(QString message);
void closeCurrentFile();
void setCurrentFile(const char *f);
void setCurrentFile(const std::string &f);
void updateCloudOnlineStatus();
void showProgressBar();
void hideProgressBar();