- fix: only convert project icon file when it's filename doesn't end with ".ico"

This commit is contained in:
Roy Qu 2022-03-18 19:14:19 +08:00
parent 49080b88e1
commit d840622b58
4 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
Red Panda C++ Version 1.0.1
- fix: only convert project icon file when it's filename doesn't end with ".ico"
Red Panda C++ Version 1.0.0 Red Panda C++ Version 1.0.0
- fix: calculation for code snippets's tab stop positions is not correct - fix: calculation for code snippets's tab stop positions is not correct
- fix: Refresh files view shouldn'tchange open/save dialog's default folder - fix: Refresh files view shouldn'tchange open/save dialog's default folder

View File

@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
} }
isEmpty(APP_VERSION) { isEmpty(APP_VERSION) {
APP_VERSION=1.0.0 APP_VERSION=1.0.1
} }
win32: VERSION = $${APP_VERSION}.0 win32: VERSION = $${APP_VERSION}.0

View File

@ -119,7 +119,7 @@ void ProjectGeneralWidget::doSave()
QMessageBox::Ok); QMessageBox::Ok);
} }
} }
if (QImageWriter::supportedImageFormats().contains("ico")) { if (!mIconPath.endsWith(".ico",PATH_SENSITIVITY) && QImageWriter::supportedImageFormats().contains("ico")) {
ui->lbIcon->pixmap()->save(iconPath,"ico"); ui->lbIcon->pixmap()->save(iconPath,"ico");
} else } else
QFile::copy(mIconPath, iconPath); QFile::copy(mIconPath, iconPath);

View File

@ -17,7 +17,7 @@ SUBDIRS += \
APP_NAME = RedPandaCPP APP_NAME = RedPandaCPP
APP_VERSION = 1.0.0 APP_VERSION = 1.0.1
linux: { linux: {