mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user