mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Some small fixes
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@757 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
8ed65f8fc4
commit
0a589956d7
5 changed files with 51 additions and 20 deletions
|
@ -570,7 +570,7 @@ namespace Greenshot.Forms {
|
|||
if (!saved) {
|
||||
MessageBoxButtons buttons = MessageBoxButtons.YesNoCancel;
|
||||
// Dissallow "CANCEL" if the application needs to shutdown
|
||||
if (e.CloseReason == CloseReason.ApplicationExitCall || e.CloseReason == CloseReason.WindowsShutDown) {
|
||||
if (e.CloseReason == CloseReason.ApplicationExitCall || e.CloseReason == CloseReason.WindowsShutDown || e.CloseReason == CloseReason.TaskManagerClosing) {
|
||||
buttons = MessageBoxButtons.YesNo;
|
||||
}
|
||||
DialogResult result = MessageBox.Show(lang.GetString(LangKey.editor_close_on_save), lang.GetString(LangKey.editor_close_on_save_title), buttons, MessageBoxIcon.Question);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue