Permalink
Browse files

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.
  • Loading branch information...
MKleusberg committed Jun 7, 2018
1 parent 72506fb commit ea25618f22db324e10b6dac90d01b8ca947fe103
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/MainWindow.cpp
@@ -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;

0 comments on commit ea25618

Please sign in to comment.