mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
6aca76c342
commit
2c490fcbbb
2 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue