Commit for issue 294 applied on behalf of Steve Herrell
This commit is contained in:
@@ -312,9 +312,11 @@ int refreshpb (void* data) {
|
||||
}
|
||||
|
||||
void FileCatalog::previewReady (int dir_id, FileBrowserEntry* fdn) {
|
||||
|
||||
GThreadLock lock;
|
||||
|
||||
_previewReady (dir_id,fdn);
|
||||
}
|
||||
void FileCatalog::_previewReady (int dir_id, FileBrowserEntry* fdn) {
|
||||
|
||||
if ( dir_id != selectedDirectoryId )
|
||||
{
|
||||
return;
|
||||
@@ -803,7 +805,7 @@ void FileCatalog::addAndOpenFile (const Glib::ustring& fname) {
|
||||
Thumbnail* tmb = cacheMgr->getEntry (file->get_parse_name());
|
||||
if (tmb) {
|
||||
FileBrowserEntry* entry = new FileBrowserEntry (tmb, file->get_parse_name());
|
||||
previewReady (selectedDirectoryId,entry);
|
||||
_previewReady (selectedDirectoryId,entry);
|
||||
// open the file
|
||||
FCOIParams* params = new FCOIParams;
|
||||
params->catalog = this;
|
||||
|
@@ -134,6 +134,7 @@ class FileCatalog : public Gtk::VBox,
|
||||
void refreshEditedState (const std::set<Glib::ustring>& efiles);
|
||||
|
||||
// previewloaderlistener interface
|
||||
void _previewReady (int dir_id, FileBrowserEntry* fdn);
|
||||
void previewReady (int dir_id, FileBrowserEntry* fdn);
|
||||
void previewsFinished (int dir_id);
|
||||
void _previewsFinished ();
|
||||
|
Reference in New Issue
Block a user