Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: X-Func on April 20, 2011, 04:46:02 pm

Title: Confirmation at exit
Post by: X-Func on April 20, 2011, 04:46:02 pm
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

Title: Re: Confirmation at exit
Post by: oBFusCATed on April 20, 2011, 04:51:20 pm
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).
Title: Re: Confirmation at exit
Post by: MortenMacFly on April 20, 2011, 09:36:13 pm
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.
Title: Re: Confirmation at exit
Post by: oBFusCATed on April 20, 2011, 10:49:22 pm
A plugin sound like an overkill...
Title: Re: Confirmation at exit
Post by: MortenMacFly on April 21, 2011, 09:09:44 am
A plugin sound like an overkill...
Maybe, but (s)he could do it without any help quickly.
Title: Re: Confirmation at exit
Post by: X-Func on April 21, 2011, 09:33:32 am
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,