Skip to content

Commit ea8440f

Browse files
committed
gui: fix duplicate message ids
Signed-off-by: Matt Liberty <[email protected]>
1 parent 3536fae commit ea8440f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/gui/src/gui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ static void message_handler(QtMsgType type,
9797
debugPrint(logger, utl::GUI, "qt", 1, print_msg);
9898
break;
9999
case QtInfoMsg:
100-
logger->info(utl::GUI, 75, print_msg);
100+
logger->info(utl::GUI, 75, "{}", print_msg);
101101
break;
102102
case QtWarningMsg:
103-
logger->warn(utl::GUI, 76, print_msg);
103+
logger->warn(utl::GUI, 76, "{}", print_msg);
104104
break;
105105
case QtCriticalMsg:
106106
case QtFatalMsg:
107-
logger->error(utl::GUI, 77, print_msg);
107+
logger->error(utl::GUI, 77, "{}", print_msg);
108108
break;
109109
}
110110
}
@@ -1553,7 +1553,7 @@ void Gui::gifEnd()
15531553

15541554
if (gif_->writer == nullptr) {
15551555
logger_->warn(utl::GUI,
1556-
75,
1556+
107,
15571557
"Nothing to save to {}. No frames added to gif.",
15581558
gif_->filename);
15591559
gif_ = nullptr;

src/gui/src/mainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ void MainWindow::openDesign()
18951895
open_->setEnabled(false);
18961896
ord::OpenRoad::openRoad()->readDb(file.toStdString().c_str());
18971897
logger_->warn(utl::GUI,
1898-
77,
1898+
109,
18991899
"Timing data is not stored in {} and must be loaded "
19001900
"separately, if needed.",
19011901
file.toStdString());
@@ -1904,7 +1904,7 @@ void MainWindow::openDesign()
19041904
}
19051905
}
19061906
if (!found) {
1907-
logger_->error(utl::GUI, 76, "Unknown filetype: {}", file.toStdString());
1907+
logger_->error(utl::GUI, 108, "Unknown filetype: {}", file.toStdString());
19081908
}
19091909
} catch (const std::exception&) {
19101910
// restore option

0 commit comments

Comments
 (0)