Fix Windows build (#4892)
This commit is contained in:
@@ -436,7 +436,9 @@ void BatchQueue::cancelItems (const std::vector<ThumbBrowserEntryBase*>& items)
|
|||||||
if (entry->thumbnail)
|
if (entry->thumbnail)
|
||||||
entry->thumbnail->imageRemovedFromQueue ();
|
entry->thumbnail->imageRemovedFromQueue ();
|
||||||
|
|
||||||
const auto func = [](BatchQueueEntry* bqe) -> bool {
|
const auto func =
|
||||||
|
[](BatchQueueEntry* bqe) -> bool
|
||||||
|
{
|
||||||
::g_remove(bqe->savedParamsFile.c_str());
|
::g_remove(bqe->savedParamsFile.c_str());
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
@@ -248,13 +248,14 @@ int updateVolumesUI (void* br)
|
|||||||
|
|
||||||
void DirBrowser::winDirChanged ()
|
void DirBrowser::winDirChanged ()
|
||||||
{
|
{
|
||||||
const auto func = [](gpointer data) -> gboolean {
|
const auto func =
|
||||||
static_cast<DirBrowser*>(data)->updateDirTreeRoot();
|
[](DirBrowser* self) -> bool
|
||||||
|
{
|
||||||
return FALSE;
|
self->updateDirTreeRoot();
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
idle_register.add(func, this);
|
idle_register.add<DirBrowser>(func, this, false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1793,13 +1793,14 @@ void FileCatalog::reparseDirectory ()
|
|||||||
|
|
||||||
void FileCatalog::winDirChanged ()
|
void FileCatalog::winDirChanged ()
|
||||||
{
|
{
|
||||||
const auto func = [](gpointer data) -> gboolean {
|
const auto func =
|
||||||
static_cast<FileCatalog*>(data)->reparseDirectory();
|
[](FileCatalog* self) -> bool
|
||||||
|
{
|
||||||
return FALSE;
|
self->reparseDirectory();
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
idle_register.add(func, this);
|
idle_register.add<FileCatalog>(func, this, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user