News:

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

Main Menu

Confirmation at exit

Started by X-Func, April 20, 2011, 04:46:02 PM

Previous topic - Next topic

X-Func

Hi all,

I've been using Code::Blocks for quite a long time ... but I've never found
which settings to change in order to have a confirmation box at exit (maybe
there's no such setting...).
More than once I had like ten files opened with numerous bookmarks on them,
then make a change and want to save with Ctrl+S and then my finger slip on Q,
C::B is exiting without asking me "Do you really want to quit your ten files with
all-the-bookmarks-you-set-since-tree-days ?"
Argh this really upset me when it happens !  :)

Did I missed the setting or there is no such ?

Regards


oBFusCATed

I think there is no such thing. I don't remember seeing it.
If there is and you've disabled it, look in the annoying dialog settings (don't remember where they are at the moment).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

But it would be a "3-liner" plugin, listening to respective event on shutdown (something like that exists) and vetoing it after showing a message box.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

A plugin sound like an overkill...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on April 20, 2011, 10:49:22 PM
A plugin sound like an overkill...
Maybe, but (s)he could do it without any help quickly.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

X-Func

Hi,

Thank you for your answers. Probably this would take three minutes to implement
it (I'm a GUI software developer - male by the way  :)), but I never took the time
(in fact, I don't really have the time at work...) to build C::B from sources and start
looking what is really inside it. I'm using the nigthlies instead.
Maybe the little message box could be added in a future nightly, for exemple in the
'annoying' dialogs settings. But it's just a proposal...

Anyway, keep up the good work !

Best regards,