fix map tab icon

This commit is contained in:
garak 2023-10-25 12:25:19 -04:00
parent 95c21a4572
commit 46ada32733

View file

@ -365,6 +365,7 @@ void MainWindow::showWindowTitle() {
);
}
if (editor && editor->layout) {
ui->mainTabBar->setTabIcon(0, QIcon());
QPixmap pixmap = editor->layout->pixmap;
if (!pixmap.isNull()) {
ui->mainTabBar->setTabIcon(0, QIcon(pixmap));