Skip to content

fix: add error handling for QFile::open failure in org_kde_plasma_window_get_icon

Li Kai requested to merge likai/kwin:work/master into master

when creating a QDataStream object, if the file has not been successfully opened before (file.open() fails), the created QDataStream object 'ds' may not function properly. If you continue to perform the operation 'ds << icon;' in this case, it may cause kwin to crash. Therefore, it is essential to ensure that the file has been successfully opened before creating the QDataStream object.

Signed-off-by: Li Kai likai@kylinos.cn

Merge request reports

Loading