From 36f98a2f0438edf82e4f326660786207ee46d87d Mon Sep 17 00:00:00 2001 From: drw Date: Tue, 16 Nov 2004 17:26:28 +0000 Subject: Fix bug #1464 - correctly reapply filters --- (limited to 'noncore/settings') diff --git a/noncore/settings/packagemanager/mainwindow.cpp b/noncore/settings/packagemanager/mainwindow.cpp index 991cc81..807bddd 100644 --- a/noncore/settings/packagemanager/mainwindow.cpp +++ b/noncore/settings/packagemanager/mainwindow.cpp @@ -1,27 +1,27 @@ /* -                This file is part of the OPIE Project + This file is part of the OPIE Project =. Copyright (c) 2003 Dan Williams -             .=l. -           .>+-= - _;:,     .>    :=|. This file is free software; you can -.> <`_,   >  .   <= redistribute it and/or modify it under -:`=1 )Y*s>-.--   : the terms of the GNU General Public -.="- .-=="i,     .._ License as published by the Free Software - - .   .-<_>     .<> Foundation; either version 2 of the License, -     ._= =}       : or (at your option) any later version. -    .%`+i>       _;_. -    .i_,=:_.      -`: PARTICULAR PURPOSE. See the GNU General -..}^=.=       =       ; Public License for more details. -++=   -.     .`     .: - :     =  ...= . :.=- You should have received a copy of the GNU - -.   .:....=;==+<; General Public License along with this file; -  -_. . .   )=.  = see the file COPYING. If not, write to the -    --        :-=` Free Software Foundation, Inc., + .=l. + .>+-= +_;:, .> :=|. This file is free software; you can +.> <`_, > . <= redistribute it and/or modify it under +:`=1 )Y*s>-.-- : the terms of the GNU General Public +.="- .-=="i, .._ License as published by the Free Software +- . .-<_> .<> Foundation; either version 2 of the License, + ._= =} : or (at your option) any later version. + .%`+i> _;_. + .i_,=:_. -`: PARTICULAR PURPOSE. See the GNU General +..}^=.= = ; Public License for more details. +++= -. .` .: +: = ...= . :.=- You should have received a copy of the GNU +-. .:....=;==+<; General Public License along with this file; + -_. . . )=. = see the file COPYING. If not, write to the + -- :-=` Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -531,6 +531,16 @@ void MainWindow::slotCloseDlg() QCopEnvelope e("QPE/System", "linkChanged(QString)"); QString lf = QString::null; e << lf; + + // Reapply any filters previously set + if ( m_actionShowNotInstalled->isOn() ) + slotShowNotInstalled(); + else if ( m_actionShowInstalled->isOn() ) + slotShowInstalled(); + else if ( m_actionShowUpdated->isOn() ) + slotShowUpdated(); + else if ( m_actionFilter->isOn() ) + slotFilter( true ); } void MainWindow::slotConfigure() -- cgit v0.9.0.2