-rw-r--r-- | core/launcher/launcherview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 0df949e..764f088 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -447,28 +447,30 @@ LauncherView::~LauncherView() | |||
447 | { | 447 | { |
448 | } | 448 | } |
449 | 449 | ||
450 | void LauncherView::setToolsEnabled(bool y) | 450 | void LauncherView::setToolsEnabled(bool y) |
451 | { | 451 | { |
452 | if ( !y != !tools ) { | 452 | if ( !y != !tools ) { |
453 | if ( y ) { | 453 | if ( y ) { |
454 | tools = new QHBox(this); | 454 | tools = new QHBox(this); |
455 | 455 | ||
456 | // Type filter | 456 | // Type filter |
457 | typemb = new MenuButton(tools); | 457 | typemb = new MenuButton(tools); |
458 | typemb->setLabel(tr("Type: %1")); | 458 | typemb->setLabel(tr("Type: %1")); |
459 | 459 | typemb->setFixedHeight ( 20 ); | |
460 | |||
460 | // Category filter | 461 | // Category filter |
461 | catmb = new CategorySelect(tools); | 462 | catmb = new CategorySelect(tools); |
462 | 463 | catmb->setFixedHeight ( 20 ); | |
464 | |||
463 | updateTools(); | 465 | updateTools(); |
464 | tools->show(); | 466 | tools->show(); |
465 | } else { | 467 | } else { |
466 | delete tools; | 468 | delete tools; |
467 | tools = 0; | 469 | tools = 0; |
468 | } | 470 | } |
469 | } | 471 | } |
470 | } | 472 | } |
471 | 473 | ||
472 | void LauncherView::updateTools() | 474 | void LauncherView::updateTools() |
473 | { | 475 | { |
474 | disconnect( typemb, SIGNAL(selected(const QString&)), | 476 | disconnect( typemb, SIGNAL(selected(const QString&)), |