Skip to content

Commit

Permalink
first time check show all packages if list is empty (texstudio-org#3497)
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder authored Jan 30, 2024
1 parent a273d93 commit 57e55b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/texdocdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ void TexdocDialog::itemChanged(QTableWidgetItem* item)
void TexdocDialog::setPackageNames(const QStringList &packages)
{
m_packages=packages;
regenerateTable();
bool checked = false;
if (m_packages.count()==0) checked = true;
ui->cbShowAllPackages->setChecked(checked);
regenerateTable(checked);
}

void TexdocDialog::setPreferredPackage(const QString &package)
Expand Down

0 comments on commit 57e55b5

Please sign in to comment.