mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:30:39 +00:00
* Source/NSPrintPanel.m:
Move _finalWritePrintInfo: call to the end of _pickedButton:. This fixes the save and preview buttons for me. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34294 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e395fe88d7
commit
10ee7a4dd2
2 changed files with 10 additions and 3 deletions
|
@ -354,9 +354,6 @@ static NSPrintPanel *shared_instance = nil;
|
|||
{
|
||||
int tag = [sender tag];
|
||||
|
||||
// FIXME
|
||||
[self _finalWritePrintInfo: _printInfo];
|
||||
|
||||
if (tag == NSPPSaveButton)
|
||||
{
|
||||
_picked = NSPPSaveButton;
|
||||
|
@ -402,6 +399,10 @@ static NSPrintPanel *shared_instance = nil;
|
|||
{
|
||||
NSLog(@"Print panel buttonAction: from unknown sender - x%p\n", sender);
|
||||
}
|
||||
|
||||
// FIXME
|
||||
[self _finalWritePrintInfo: _printInfo];
|
||||
|
||||
[NSApp stopModalWithCode: (_picked == NSCancelButton) ? NSCancelButton : NSOKButton];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue