-rw-r--r-- | korganizer/mainwindow.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index a93d8e5..c3c4c26 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1534,37 +1534,35 @@ void MainWindow::fillFilterMenu() | |||
1534 | disable = true; | 1534 | disable = true; |
1535 | } | 1535 | } |
1536 | selectFilterMenu->insertSeparator(); | 1536 | selectFilterMenu->insertSeparator(); |
1537 | QPtrList<CalFilter> fili = mView->filters(); | 1537 | QPtrList<CalFilter> fili = mView->filters(); |
1538 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 1538 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
1539 | CalFilter *filter = fili.first(); | 1539 | CalFilter *filter = fili.first(); |
1540 | int iii = 1; | 1540 | int iii = 1; |
1541 | while(filter) { | 1541 | while(filter) { |
1542 | selectFilterMenu->insertItem( filter->name(), iii ); | 1542 | selectFilterMenu->insertItem( filter->name(), iii ); |
1543 | if ( filter == curfilter) | 1543 | if ( filter == curfilter) |
1544 | selectFilterMenu->setItemChecked( iii, true ); | 1544 | selectFilterMenu->setItemChecked( iii, true ); |
1545 | if ( disable ) | 1545 | if ( disable ) |
1546 | selectFilterMenu->setItemEnabled( iii, false ); | 1546 | selectFilterMenu->setItemEnabled( iii, false ); |
1547 | filter = fili.next(); | 1547 | filter = fili.next(); |
1548 | ++iii; | 1548 | ++iii; |
1549 | } | 1549 | } |
1550 | qDebug("rettich "); | ||
1551 | } | 1550 | } |
1552 | void MainWindow::selectFilter( int fil ) | 1551 | void MainWindow::selectFilter( int fil ) |
1553 | { | 1552 | { |
1554 | qDebug("selectFilter %d ", fil); | ||
1555 | if ( fil == 0 ) { | 1553 | if ( fil == 0 ) { |
1556 | mView->toggleFilerEnabled( ); | 1554 | mView->toggleFilerEnabled( ); |
1557 | } else { | 1555 | } else { |
1558 | mView->selectFilter( fil-1 ); | 1556 | mView->selectFilter( fil-1 ); |
1559 | } | 1557 | } |
1560 | } | 1558 | } |
1561 | void MainWindow::configureToolBar( int item ) | 1559 | void MainWindow::configureToolBar( int item ) |
1562 | { | 1560 | { |
1563 | 1561 | ||
1564 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); | 1562 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); |
1565 | KOPrefs *p = KOPrefs::instance(); | 1563 | KOPrefs *p = KOPrefs::instance(); |
1566 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); | 1564 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); |
1567 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); | 1565 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); |
1568 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); | 1566 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); |
1569 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); | 1567 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); |
1570 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); | 1568 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); |