about_dialog (qt): Fix Dead Store (Dead assignement/Dead increment) Warning found...
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Sun, 4 Feb 2018 20:49:29 +0000 (21:49 +0100)
committerMichael Mann <mmann78@netscape.net>
Tue, 6 Feb 2018 13:56:17 +0000 (13:56 +0000)
Change-Id: Ib7c673980909551d9f817d60bbe2d77ed180b661
Reviewed-on: https://code.wireshark.org/review/25599
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
ui/qt/about_dialog.cpp

index d53d7a57f88140d847c89d10b9f5b9e85a5ec48f..187793dfa81e479f7e8d563d7c109b55bd26079b 100644 (file)
@@ -432,8 +432,6 @@ void AboutDialog::showEvent(QShowEvent * event)
         ui->tblPlugins->resizeColumnToContents(col);
     }
 
-    // Shortcuts: Set widths manually.
-    model = ui->tblShortcuts->model();
     // Contents + 2 em-widths
     ui->tblShortcuts->resizeColumnToContents(0);
     ui->tblShortcuts->setColumnWidth(0, ui->tblShortcuts->columnWidth(0) + (one_em * 2));