Changeset 546

Show
Ignore:
Timestamp:
04/01/06 01:13:22 (3 years ago)
Author:
hipplej
Message:

Fixed assertion error. Save and Cancel don't belong to grp so it would die when trying to show a page in the stacked widget that doesnt exist.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/config/configdialog.cpp

    r535 r546  
    6666   
    6767  /* Create and bind the Save button */   
    68   _actionSave = new QAction(QIcon(IMAGE_SAVE), tr("Save"), grp); 
     68  _actionSave = new QAction(QIcon(IMAGE_SAVE), tr("Save"), ui.toolBar); 
    6969  _actionSave->setFont(FONT); 
    7070  ui.toolBar->addAction(_actionSave); 
     
    7272   
    7373  /* Create and bind the Cancel button */ 
    74   _actionCancel = new QAction(QIcon(IMAGE_CANCEL), tr("Cancel"), grp); 
     74  _actionCancel = new QAction(QIcon(IMAGE_CANCEL), tr("Cancel"), ui.toolBar); 
    7575  _actionCancel->setFont(FONT); 
    7676  ui.toolBar->addAction(_actionCancel);