mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T451, fixed temp. disabled model
* display info message * aircraft model list implementing ICallsignObjectList (for message) * fixed wrong flag in requestTempDisable
This commit is contained in:
committed by
Mat Sutcliffe
parent
25df1921eb
commit
a90d4465a2
@@ -35,6 +35,7 @@
|
||||
#include <QString>
|
||||
#include <QWidget>
|
||||
#include <QtGlobal>
|
||||
#include <QStringBuilder>
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Simulation;
|
||||
@@ -387,14 +388,14 @@ namespace BlackGui
|
||||
|
||||
void CAircraftModelView::toggleHighlightStashedModels()
|
||||
{
|
||||
bool h = derivedModel()->highlightModelStrings();
|
||||
const bool h = derivedModel()->highlightModelStrings();
|
||||
derivedModel()->setHighlightModelStrings(!h);
|
||||
emit toggledHighlightStashedModels();
|
||||
}
|
||||
|
||||
void CAircraftModelView::toggleHighlightInvalidModels()
|
||||
{
|
||||
bool h = this->highlightModelStrings();
|
||||
const bool h = this->highlightModelStrings();
|
||||
this->setHighlightModelStrings(!h);
|
||||
}
|
||||
|
||||
@@ -418,7 +419,7 @@ namespace BlackGui
|
||||
|
||||
void CAircraftModelView::requestTempDisable()
|
||||
{
|
||||
if (!m_menus.testFlag(MenuCanStashModels)) { return; }
|
||||
if (!m_menus.testFlag(MenuDisableModelsTemp)) { return; }
|
||||
if (!this->hasSelection()) { return; }
|
||||
const CAircraftModelList models(this->selectedObjects());
|
||||
emit this->requestTempDisableModelsForMatching(models);
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace BlackGui
|
||||
|
||||
void CSimulatedAircraftView::requestTempDisable()
|
||||
{
|
||||
if (!m_menus.testFlag(MenuCanStashModels)) { return; }
|
||||
if (!m_menus.testFlag(MenuDisableModelsTemp)) { return; }
|
||||
if (!this->hasSelection()) { return; }
|
||||
const CAircraftModelList models(this->selectedObjects().getModels());
|
||||
emit this->requestTempDisableModelsForMatching(models);
|
||||
|
||||
Reference in New Issue
Block a user