We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59e303c commit 3e1a0ffCopy full SHA for 3e1a0ff
qt/OpenRGBPluginsPage/OpenRGBPluginsPage.cpp
@@ -350,6 +350,15 @@ void Ui::OpenRGBPluginsPage::on_PluginsList_itemSelectionChanged()
350
\*-----------------------------------------------------*/
351
int cur_row = ui->PluginsList->currentRow();
352
353
+ /*-----------------------------------------------------*\
354
+ | Disable the remove button if no item selected |
355
+ \*-----------------------------------------------------*/
356
+ if(cur_row == -1)
357
+ {
358
+ ui->RemovePluginButton->setEnabled(false);
359
+ return;
360
+ }
361
+
362
/*-----------------------------------------------------*\
363
| Enable the remove button when there's a selected item |
364
| and the selected item is not a system plugin |
0 commit comments