Changeset 213 for trunk/src/MainPter.cxx
- Timestamp:
- 06/10/06 14:14:55 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/MainPter.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MainPter.cxx
r212 r213 446 446 } 447 447 448 #if defined (HAVE_CUPS) 449 /// 450 /// @brief The "print" action was activated. 451 /// 452 void 453 MainPter::printActivated () 454 { 455 PrintPter *print = new PrintPter (); 456 IPrintView *view = getView ().getPrintView (); 457 if ( NULL != view ) 458 { 459 print->setView (view); 460 } 461 else 462 { 463 delete print; 464 } 465 // There's no need to keep a pointer to the presenter because 466 // it will destroy itself when the dialog is closed. 467 } 468 #endif // HAVE_CUPS 469 448 470 /// 449 471 /// @brief The "Preferences" was activated. … … 458 480 preferences->setView (view); 459 481 } 482 else 483 { 484 delete preferences; 485 } 460 486 // There's no need to keep a pointer of the preferences presenter because 461 // when the dialog is closed o fthe application is finished it will487 // when the dialog is closed or the application is finished it will 462 488 // destroy itself. 463 489 }
