Commit fcccbda7 authored by ledig's avatar ledig
Browse files

[FIX] load Button now gets unpressed after usage

parent 2d1162e6
......@@ -219,7 +219,7 @@ void WMainWindow::setupPermanentToolBar()
m_iconManager.addIcon( std::string( "sagittal" ), sag_xpm );
WQtPushButton* loadButton = new WQtPushButton( m_iconManager.getIcon( "load" ), "load", m_permanentToolBar );
m_loadButton = new WQtPushButton( m_iconManager.getIcon( "load" ), "load", m_permanentToolBar );
WQtPushButton* roiButton = new WQtPushButton( m_iconManager.getIcon( "ROI" ), "ROI", m_permanentToolBar );
WQtPushButton* projectLoadButton = new WQtPushButton( m_iconManager.getIcon( "loadProject" ), "loadProject", m_permanentToolBar );
WQtPushButton* projectSaveButton = new WQtPushButton( m_iconManager.getIcon( "saveProject" ), "saveProject", m_permanentToolBar );
......@@ -233,17 +233,17 @@ void WMainWindow::setupPermanentToolBar()
projectSaveButton->setPopupMode( QToolButton::MenuButtonPopup );
projectSaveButton->setMenu( saveMenu );
connect( loadButton, SIGNAL( pressed() ), this, SLOT( openLoadDialog() ) );
connect( m_loadButton, SIGNAL( pressed() ), this, SLOT( openLoadDialog() ) );
connect( roiButton, SIGNAL( pressed() ), this, SLOT( newRoi() ) );
connect( projectLoadButton, SIGNAL( pressed() ), this, SLOT( projectLoad() ) );
connect( projectSaveButton, SIGNAL( pressed() ), this, SLOT( projectSaveAll() ) );
loadButton->setToolTip( "Load Data" );
m_loadButton->setToolTip( "Load Data" );
roiButton->setToolTip( "Create New ROI" );
projectLoadButton->setToolTip( "Load a project from file" );
projectSaveButton->setToolTip( "Save current project to file" );
m_permanentToolBar->addWidget( loadButton );
m_permanentToolBar->addWidget( m_loadButton );
m_permanentToolBar->addSeparator();
m_permanentToolBar->addWidget( projectLoadButton );
m_permanentToolBar->addWidget( projectSaveButton );
......@@ -600,6 +600,9 @@ void WMainWindow::openLoadDialog()
{
m_loaderSignal( stdFileNames );
}
// walkaround that a button keeps his down state after invoking a dialog
m_loadButton->setDown( false );
}
void WMainWindow::openAboutDialog()
......
......@@ -233,6 +233,8 @@ private:
WQtToolBar* m_permanentToolBar; //!< The permanent toolbar of the main window.
WQtPushButton* m_loadButton; //!< the load Data Button
WQtToolBar* m_compatiblesToolBar; //!< This toolbar shows the compatible modules if a module is selected in the dataset browser
WQtDatasetBrowser* m_datasetBrowser; //!< dataset browser
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment