Skip to content

Commit 3cd37be

Browse files
committed
add placeholder when new help location entry added (fix #16157)
1 parent 1225203 commit 3cd37be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/qgsoptions.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1748,9 +1748,10 @@ void QgsOptions::on_mBtnRemovePluginPath_clicked()
17481748
void QgsOptions::on_mBtnAddHelpPath_clicked()
17491749
{
17501750
QTreeWidgetItem *item = new QTreeWidgetItem();
1751-
item->setText( 0, QString() );
1751+
item->setText( 0, QStringLiteral( "HELP_LOCATION" ) );
17521752
item->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable );
17531753
mHelpPathTreeWidget->addTopLevelItem( item );
1754+
mHelpPathTreeWidget->setCurrentItem( item );
17541755
}
17551756

17561757
void QgsOptions::on_mBtnRemoveHelpPath_clicked()

0 commit comments

Comments
 (0)