From e2455e8ecc4d76793525148965ea65d7e895a98d Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 14 Jun 2015 13:23:49 +0000 Subject: [PATCH] Ensure question icon is not the first one in the application, so the exe does not use the question icon any more. See http://stackoverflow.com/questions/15564755/adding-a-res-file-to-project-replaces-the-default-icon-how-to-prevent-it --- res/icon-question.rc | 2 +- source/helpers.pas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/icon-question.rc b/res/icon-question.rc index c12433d2..0a9867dd 100644 --- a/res/icon-question.rc +++ b/res/icon-question.rc @@ -1 +1 @@ -ICONQUESTION ICON "icons\icon-question.ico" \ No newline at end of file +Z_ICONQUESTION ICON "icons\icon-question.ico" \ No newline at end of file diff --git a/source/helpers.pas b/source/helpers.pas index 92783496..0677c2af 100644 --- a/source/helpers.pas +++ b/source/helpers.pas @@ -2367,7 +2367,7 @@ begin mtConfirmation, mtCustom: begin if not Assigned(ConfirmIcon) then begin ConfirmIcon := TIcon.Create; - ConfirmIcon.LoadFromResourceName(hInstance, 'ICONQUESTION'); + ConfirmIcon.LoadFromResourceName(hInstance, 'Z_ICONQUESTION'); end; Dialog.Flags := Dialog.Flags + [tfUseHiconMain]; Dialog.CustomMainIcon := ConfirmIcon;