mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
Ref T362, style and minor fixes
This commit is contained in:
@@ -51,7 +51,7 @@ namespace BlackGui
|
|||||||
explicit CAircraftModelListModel(AircraftModelMode mode, QObject *parent = nullptr);
|
explicit CAircraftModelListModel(AircraftModelMode mode, QObject *parent = nullptr);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~CAircraftModelListModel() {}
|
virtual ~CAircraftModelListModel() override {}
|
||||||
|
|
||||||
//! Mode
|
//! Mode
|
||||||
void setAircraftModelMode(CAircraftModelListModel::AircraftModelMode stationMode);
|
void setAircraftModelMode(CAircraftModelListModel::AircraftModelMode stationMode);
|
||||||
|
|||||||
@@ -290,7 +290,10 @@ namespace BlackGui
|
|||||||
void CAircraftModelView::customMenu(CMenuActions &menuActions)
|
void CAircraftModelView::customMenu(CMenuActions &menuActions)
|
||||||
{
|
{
|
||||||
// Statistics
|
// Statistics
|
||||||
menuActions.addAction(CIcons::appAircraft16(), "Model statistics", CMenuAction::pathModel(), { this, &CAircraftModelView::displayModelStatisticsDialog });
|
if (!this->isEmpty())
|
||||||
|
{
|
||||||
|
menuActions.addAction(CIcons::appAircraft16(), "Model statistics", CMenuAction::pathModel(), { this, &CAircraftModelView::displayModelStatisticsDialog });
|
||||||
|
}
|
||||||
|
|
||||||
// Stash menus
|
// Stash menus
|
||||||
bool addStashMenu = false;
|
bool addStashMenu = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user