Don't ask for PK again when chaging back to a editing-enabled view

When unlocking a view for editing by specifying a pseudo-PK, then
switching to another table, and then coming back to the original view,
you would be asked again for the pseudo-PK even though it was stored.
The same applies when loading a project file for this case. This is
fixed by this commit.
This commit is contained in:
Martin Kleusberg
2018-06-07 14:44:30 +02:00
parent 72506fb902
commit ea25618f22

View File

@@ -2828,7 +2828,9 @@ void MainWindow::unlockViewEditing(bool unlock, QString pk)
m_browseTableModel->setPseudoPk(pk);
// Update checked status of the popup menu action
ui->actionUnlockViewEditing->blockSignals(true);
ui->actionUnlockViewEditing->setChecked(unlock);
ui->actionUnlockViewEditing->blockSignals(false);
// Save settings for this table
browseTableSettings[currentTable].unlockViewPk = pk;