| 41 | } |
| 42 | |
| 43 | void WorkingSetWidget::setVisible( bool visible ) |
| 44 | { |
| 45 | // never show empty working sets |
| 46 | // TODO: I overloaded this only because hide() in the ctor does not work, other ideas? |
| 47 | // It's not that it doesn't work from the constructor, it's that the value changes when the button is added on a layout. |
| 48 | QWidget::setVisible( visible && (workingSet() && !workingSet()->isEmpty()) ); |
| 49 | } |
| 50 | |
| 51 | void WorkingSetWidget::changingWorkingSet(Sublime::Area* area, Sublime::Area* /*oldArea*/, const QString& /*from*/, const QString& newSet) |
| 52 | { |