* 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:
Eric Wasylishen 2011-12-15 18:31:34 +00:00
parent e395fe88d7
commit 10ee7a4dd2
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>
* Source/NSPrinter.m:

View file

@ -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];
}