Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit adc23e0

Browse files
committed
Expose original file path when opening a new file
Signed-off-by: Alexander Scheel <[email protected]>
1 parent de3c774 commit adc23e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ void MainWindow::openFileDialog()
448448

449449
if (fileOpened())
450450
{
451-
if (openNewFileQuestionDialog(mScanningSession->getOpenedFilePath()) == QMessageBox::Yes)
451+
if (openNewFileQuestionDialog(mScanningSession->getOriginalFilePath()) == QMessageBox::Yes)
452452
closeFile();
453453
else
454454
// user cancelled closing current file, we have to abort
@@ -514,7 +514,7 @@ void MainWindow::openSSGDialog(const QString& customDismissLabel)
514514

515515
if (fileOpened())
516516
{
517-
if (openNewFileQuestionDialog(mScanningSession->getOpenedFilePath()) == QMessageBox::Yes)
517+
if (openNewFileQuestionDialog(mScanningSession->getOriginalFilePath()) == QMessageBox::Yes)
518518
{
519519
closeFile();
520520
}

0 commit comments

Comments
 (0)