Author Topic: Confirmation at exit  (Read 4668 times)

Offline X-Func

  • Single posting newcomer
  • *
  • Posts: 3
Confirmation at exit
« 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


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Confirmation at exit
« Reply #1 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).
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Confirmation at exit
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Confirmation at exit
« Reply #3 on: April 20, 2011, 10:49:22 pm »
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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Confirmation at exit
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline X-Func

  • Single posting newcomer
  • *
  • Posts: 3
Re: Confirmation at exit
« Reply #5 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,