Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Dec 7, 2024
1 parent a0bd4b5 commit d2d3d10
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions RedPandaIDE/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ MainWindow::MainWindow(QWidget *parent)


/** Msys2 MinGW 64 Qt 6.8.0 fix: Crash when debug **/
#if defined(QT_DEBUG) && defined(Q_OS_WINDOWS) && QT_VERSION_MAJOR == 6
// QFont font(pSettings->environment().interfaceFont());
// font.setPixelSize(pointToPixel(pSettings->environment().interfaceFontSize()));
// font.setStyleStrategy(QFont::PreferAntialias);
// qApp->setFont(font);
// this->setFont(font);
#if defined(QT_DEBUG) && QT_VERSION_MAJOR == 6 && QT_VERSION_MINOR == 8
QFont font(pSettings->environment().interfaceFont());
font.setPixelSize(pointToPixel(pSettings->environment().interfaceFontSize()));
font.setStyleStrategy(QFont::PreferAntialias);
qApp->setFont(font);
this->setFont(font);
#endif
/** **/

Expand Down Expand Up @@ -3540,7 +3540,6 @@ void MainWindow::loadLastOpens()
}

if (mEditorList->pageCount()>0) {
bug();
updateEditorActions();
//updateForEncodingInfo();
}
Expand Down

0 comments on commit d2d3d10

Please sign in to comment.