From d840622b58fecf320794fee69d884f6d1ad4fc71 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 18 Mar 2022 19:14:19 +0800 Subject: [PATCH] - fix: only convert project icon file when it's filename doesn't end with ".ico" --- NEWS.md | 3 +++ RedPandaIDE/RedPandaIDE.pro | 2 +- RedPandaIDE/settingsdialog/projectgeneralwidget.cpp | 2 +- Red_Panda_CPP.pro | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 0d9f9591..0979de99 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 - fix: calculation for code snippets's tab stop positions is not correct - fix: Refresh files view shouldn'tchange open/save dialog's default folder diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index a78d51d0..24796812 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -10,7 +10,7 @@ isEmpty(APP_NAME) { } isEmpty(APP_VERSION) { - APP_VERSION=1.0.0 + APP_VERSION=1.0.1 } win32: VERSION = $${APP_VERSION}.0 diff --git a/RedPandaIDE/settingsdialog/projectgeneralwidget.cpp b/RedPandaIDE/settingsdialog/projectgeneralwidget.cpp index 54df9e4b..b295c82e 100644 --- a/RedPandaIDE/settingsdialog/projectgeneralwidget.cpp +++ b/RedPandaIDE/settingsdialog/projectgeneralwidget.cpp @@ -119,7 +119,7 @@ void ProjectGeneralWidget::doSave() QMessageBox::Ok); } } - if (QImageWriter::supportedImageFormats().contains("ico")) { + if (!mIconPath.endsWith(".ico",PATH_SENSITIVITY) && QImageWriter::supportedImageFormats().contains("ico")) { ui->lbIcon->pixmap()->save(iconPath,"ico"); } else QFile::copy(mIconPath, iconPath); diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index a8ded96c..7daa3039 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -17,7 +17,7 @@ SUBDIRS += \ APP_NAME = RedPandaCPP -APP_VERSION = 1.0.0 +APP_VERSION = 1.0.1 linux: {