From 1e247c6fea51dab6815e3a15f22cd08e56039e89 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 23 Jun 2013 05:47:10 +0200 Subject: Make the archive cache useful Read the cache if there is one, if not, read it in another thread and update the view when it's done. --- shemov.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 8912295..eeeddbf 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -79,6 +79,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla qApp->processEvents(); mArchive = new ArchiveView; mTab->addTab(mArchive, "Experimental"); + connect(mArchive->archiveModel(), SIGNAL(message(QString)), this, SLOT(statusbarMessage(QString))); //pictures splash.showMessage(tr("Creating Picture Archive..."), Qt::AlignHCenter, Qt::yellow); @@ -140,11 +141,6 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla readSettings(); mFSWidget->fileView()->setFocus(Qt::ActiveWindowFocusReason); mPicWidget->readSettings(); - mArchive->setConstructingDone(); - Helper::centerWidget(mArchive->progressDialog()); - if(mArchive->archiveModel()->collector()->isRunning()){ - mArchive->progressDialog()->show(); - } Helper::centerWidget(picViewer); } -- cgit v1.2.3-70-g09d2