mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -05:00
Avoid Qt warning
This commit is contained in:
parent
5828f5d343
commit
ecfacdf2fc
@ -287,7 +287,8 @@ QgsLayoutMouseHandles *QgsLayoutViewToolSelect::mouseHandles()
|
||||
void QgsLayoutViewToolSelect::setLayout( QgsLayout *layout )
|
||||
{
|
||||
// existing handles are owned by previous layout
|
||||
mMouseHandles->deleteLater();
|
||||
if ( mMouseHandles )
|
||||
mMouseHandles->deleteLater();
|
||||
|
||||
//add mouse selection handles to layout, and initially hide
|
||||
mMouseHandles = new QgsLayoutMouseHandles( layout, view() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user