From 9bb6fc0e98f0f441e367d2795d7bf8a65ac0dcd5 Mon Sep 17 00:00:00 2001 From: Nikita Sirgienko Date: Wed, 15 Jul 2020 00:05:43 +0300 Subject: [PATCH] Add text message for 51f0cb0856a92fea69ea817d67faa95b9eb9e751 --- src/cantor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cantor.cpp b/src/cantor.cpp index 74ef7deb..369ac06e 100644 --- a/src/cantor.cpp +++ b/src/cantor.cpp @@ -106,9 +106,8 @@ void CantorShell::load(const QUrl &url) { if (m_tabWidget->currentIndex() != i) activateWorksheet(i); - //else - // TODO message about that user try to open worksheet, which have been opened - // in Cantor and the user already see the worksheet, because it is active worksheet + else + KMessageBox::information(this, i18n("The file %1 is already opened.", QFileInfo(url.toLocalFile()).fileName()), i18n("Open file")); return; } } -- GitLab