From d7581f7cd0ba6adb43ee5c4bdeae696c0a16ae3b Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 23 Mar 2004 00:36:37 +0000 Subject: Fix communication. It seems like QPixmap and QDataStream do not mix well if the QPixmap is not valid.. invalidate image requests if we change the dir --- (limited to 'noncore/graphics/opie-eye/gui/iconview.cpp') diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index 0b80012..38a621e 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp @@ -93,7 +93,7 @@ PIconView::PIconView( QWidget* wid, Config* cfg ) : QVBox( wid ), m_cfg( cfg ) { { - QCopEnvelope( "QPE/Application/opie-eye_slave", "foo()" ); +// QCopEnvelope( "QPE/Application/opie-eye_slave", "foo()" ); } m_path = QDir::homeDirPath(); @@ -146,6 +146,10 @@ void PIconView::slotChangeDir(const QString& path) { addFolders( lister->folders() ); addFiles( lister->files() ); + // Also invalidate the cache. We can't cancel the operations anyway + g_stringPix.clear(); + g_stringInf.clear(); + // looks ugly static_cast(parent())->setCaption( QObject::tr("%1 - O View", "Name of the dir").arg( m_path ) ); } -- cgit v0.9.0.2