Commit e516d2e9 authored by Claudio Valerio's avatar Claudio Valerio

mac os fix

parent 6226ad20
......@@ -127,8 +127,11 @@ UBGraphicsScene* UBSceneCache::value(UBDocumentProxy* proxy, int pageIndex)
void UBSceneCache::removeScene(UBDocumentProxy* proxy, int pageIndex)
{
UBGraphicsScene* scene = value(proxy, pageIndex);
#ifdef Q_WS_MAC
if (scene && scene->views().size() == 0)
#else
if (scene && !scene->isActive())
#endif
{
UBSceneCacheID key(proxy, pageIndex);
int count = QHash<UBSceneCacheID, UBGraphicsScene*>::remove(key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment