From 7a386292b7ed473f25372d45722960fb40e9a359 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 16 Aug 2022 16:02:42 +0300 Subject: [PATCH] Fix build on mac os. --- src/app/tape/tmainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 36e508fad..e2c29df55 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1127,8 +1127,8 @@ void TMainWindow::AboutToShowDockMenu() //--------------------------------------------------------------------------------------------------------------------- void TMainWindow::OpenAt(QAction *where) { - const QString path = curFile.left(curFile.indexOf(where->text())) + where->text(); - if (path == curFile) + const QString path = m_curFile.left(m_curFile.indexOf(where->text())) + where->text(); + if (path == m_curFile) { return; }