Navigation Menu

Skip to content

Commit

Permalink
Don't ask for PK again when chaging back to a editing-enabled view
Browse files Browse the repository at this point in the history
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 ea25618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MainWindow.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit ea25618

Please sign in to comment.