Fixed bug where the close confirmation would still appear after a changed document was closed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5640 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1abb86b2ed
commit
187f0b8a33
@ -219,9 +219,6 @@ ShowImageWindow::BuildViewMenu(BMenu *pmenu)
|
||||
// Note: ShowImage loades images in window thread so it becomes unresponsive if
|
||||
// slide show delay is too short! (Especially if loading the image takes as long as
|
||||
// or longer than the slide show delay). Should load in background thread!
|
||||
// AddDelayItem(pDelay, "Half a Second", 0.5, false);
|
||||
// AddDelayItem(pDelay, "One Second", 1, false);
|
||||
// AddDelayItem(pDelay, "Two Second", 2, false);
|
||||
AddDelayItem(pDelay, "Three Seconds", 3);
|
||||
AddDelayItem(pDelay, "Four Second", 4);
|
||||
AddDelayItem(pDelay, "Five Seconds", 5);
|
||||
@ -844,9 +841,11 @@ ShowImageWindow::ClosePrompt()
|
||||
if (pAlert->Go() == 0)
|
||||
// Cancel
|
||||
return false;
|
||||
else
|
||||
else {
|
||||
// Close
|
||||
fModified = false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user