* 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:
ericwa 2011-12-15 18:31:34 +00:00
parent aefc51b5bb
commit 694f8176e2
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2011-12-15 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSPrintPanel.m:
Move _finalWritePrintInfo: call to the end of _pickedButton:. This
fixes the save and preview buttons for me.
2011-12-14 Eric Wasylishen <ewasylishen@gmail.com> 2011-12-14 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSPrinter.m: * Source/NSPrinter.m:

View file

@ -354,9 +354,6 @@ static NSPrintPanel *shared_instance = nil;
{ {
int tag = [sender tag]; int tag = [sender tag];
// FIXME
[self _finalWritePrintInfo: _printInfo];
if (tag == NSPPSaveButton) if (tag == NSPPSaveButton)
{ {
_picked = NSPPSaveButton; _picked = NSPPSaveButton;
@ -402,6 +399,10 @@ static NSPrintPanel *shared_instance = nil;
{ {
NSLog(@"Print panel buttonAction: from unknown sender - x%p\n", sender); NSLog(@"Print panel buttonAction: from unknown sender - x%p\n", sender);
} }
// FIXME
[self _finalWritePrintInfo: _printInfo];
[NSApp stopModalWithCode: (_picked == NSCancelButton) ? NSCancelButton : NSOKButton]; [NSApp stopModalWithCode: (_picked == NSCancelButton) ? NSCancelButton : NSOKButton];
} }