News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Remove files silently fails when no file has been selected.

Started by Pecan, September 23, 2021, 07:53:11 PM

Previous topic - Next topic

Pecan

Remove files silently fails when no file has been selected just after a project is loaded.

1) load a project
2) click main menu/Project/Remove files...

Nothing happens.
Shouldn't the user be given a message to select a file first?

Name                    : Code::Blocks
Version                 : svn-r12516
SDK Version             : 2.14.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : http://www.codeblocks.org
OS                      : Windows 10 (build 18363), 64-bit edition
Scaling factor          : 1.000000
Detected scaling factor : 1.000000
Display PPI             : 120x120
Display count           : 1
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxMSW port)
Version 3.1.5 (Unicode: wchar_t, debug level: 1),
compiled at Jun  5 2021 11:08:36

Runtime version of toolkit used is 10.0.

Miguel Gimenez

IMHO the better option would be disabling the option if there are no selected files, but a message is easier and the user is expecting a popup anyway.