mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
fix #38872
This commit is contained in:
parent
ca6ffb77ca
commit
0fb54bc4ac
@ -10087,17 +10087,18 @@ void QgisApp::enableDigitizeWithCurveAction( bool enable )
|
||||
QgsSettings settings;
|
||||
|
||||
QObject *sender = QObject::sender();
|
||||
if ( sender && sender != this )
|
||||
enable &= ( sender == mActionAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
|
||||
sender == mActionSplitFeatures;
|
||||
else
|
||||
enable &= ( mMapCanvas->mapTool() == mMapTools.mAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
|
||||
mMapCanvas->mapTool() == mMapTools.mSplitFeatures;
|
||||
|
||||
enable &= ( sender == mActionAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
|
||||
( mMapCanvas->mapTool() == mMapTools.mAddFeature && mMapTools.mAddFeature->mode() != QgsMapToolCapture::CapturePoint ) ||
|
||||
sender == mActionSplitFeatures ||
|
||||
mMapCanvas->mapTool() == mMapTools.mSplitFeatures;
|
||||
|
||||
bool isChecked = settings.value( QStringLiteral( "UI/digitizeWithCurve" ) ).toInt() && enable;
|
||||
mActionDigitizeWithCurve->setChecked( isChecked );
|
||||
|
||||
mActionDigitizeWithCurve->setEnabled( enable );
|
||||
|
||||
mMapTools.mAddFeature->setCircularDigitizingEnabled( isChecked );
|
||||
static_cast<QgsMapToolCapture *>( mMapTools.mSplitFeatures )->setCircularDigitizingEnabled( isChecked );
|
||||
}
|
||||
|
||||
void QgisApp::splitFeatures()
|
||||
|
Loading…
x
Reference in New Issue
Block a user