Skip to content

Commit

Permalink
Clear data before processing events (Fixes #231)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Dec 16, 2023
1 parent bc7d167 commit 4ac7e75
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,13 +638,18 @@ void MainWindow::askFindFiles()

void MainWindow::readPkg( const PkgFilter & pkgFilter )
{
// logInfo() << "URL: " << pkgFilter.url() << endl;
logInfo() << "URL: " << pkgFilter.url() << endl;

updateWindowTitle( pkgFilter.url() );
// app()->dirTreeModel()->clear(); // For instant feedback
_ui->breadcrumbNavigator->setPath( 0 );
app()->dirTreeModel()->clear();

BusyPopup msg( tr( "Reading package database..." ), this );

logDebug() << "Collapsing all tree items" << endl;
expandTreeToLevel( 0 ); // Performance boost: Down from 25 to 6 sec.

logDebug() << "Reading packages" << endl;
app()->dirTreeModel()->readPkg( pkgFilter );
}

Expand Down

0 comments on commit 4ac7e75

Please sign in to comment.