Automatically disable Auto-Fill when enabling LCP Disortion Correction, #1791

This commit is contained in:
Beep6581
2016-05-30 23:47:13 +02:00
parent d57eec1628
commit 9fccdd6ca5
5 changed files with 31 additions and 0 deletions

View File

@@ -113,3 +113,19 @@ void LensGeometry::setBatchMode (bool batchMode)
ToolPanel::setBatchMode (batchMode);
removeIfThere (this, autoCrop);
}
void LensGeometry::disableAutoFillIfActive ()
{
if (!batchMode) {
if (fill->get_active()) {
fillConn.block (true);
fill->set_active(false);
if (listener) {
listener->panelChanged (EvTransAutoFill, M("GENERAL_DISABLED"));
}
fillConn.block (false);
}
}
}