iOS: ensure we return a non-null clipboard

QPlatformIntegration::clipboard() is not allowed to return
 null. This will lead to a crash as soon as someone tries
 to access QClipboard.

Change-Id: I3c1e7cdc5103fe4424f9739a09f599d6c0af40b2
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
bb10
Richard Moe Gustavsen 2016-10-27 14:06:49 +02:00
parent 5a92b6e8be
commit 3daa76d494
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ QPlatformClipboard *QIOSIntegration::clipboard() const
#ifndef Q_OS_TVOS
return m_clipboard;
#else
return 0;
return QPlatformIntegration::clipboard();
#endif
}
#endif