diff options
| author | Akseli Lahtinen <[email protected]> | 2024-11-13 11:41:45 +0200 |
|---|---|---|
| committer | Akseli Lahtinen <[email protected]> | 2024-11-13 09:42:25 +0000 |
| commit | 4f0bb805d2c3dfdfc87c5000a6a3675da1d8b6c2 (patch) | |
| tree | 5460e93852d8103982eb51f1de754627186165b5 /src/admin/workerintegration.h | |
| parent | 11403da5b36b5b8314e69b86cc88bcf6d7733bba (diff) | |
generalviewsettingspage: Use qobject_cast instead of static_cast
In generalViewSettingsPage, ActiveWindow is not necessarily a
mainWindow, which can cause dolphin to crash. For example when user
opens folder properties and then dolphin settings, this part thinks
the folder settings is mainWindow.
Instead of static_cast, use qobject_cast, since it will return nullptr
if the DolphinMainWindow is not found.
BUG:492741
Diffstat (limited to 'src/admin/workerintegration.h')
0 files changed, 0 insertions, 0 deletions
