mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 19:25:49 +08:00
refs #800, fixed issues reported by MS
https://dev.vatsim-germany.org/issues/800#note-2
This commit is contained in:
@@ -75,7 +75,6 @@ namespace BlackGui
|
|||||||
menuActions.addMenuSimulator();
|
menuActions.addMenuSimulator();
|
||||||
if (this->m_messageFrame)
|
if (this->m_messageFrame)
|
||||||
{
|
{
|
||||||
const CAircraftModel model(mv->selectedObject());
|
|
||||||
if (!model.getIconPath().isEmpty())
|
if (!model.getIconPath().isEmpty())
|
||||||
{
|
{
|
||||||
this->m_iconAction = menuActions.addAction(this->m_iconAction, CIcons::appAircraft16(), "Display icon", CMenuAction::pathSimulator(), { this, &CShowSimulatorFileMenu::ps_displayIcon });
|
this->m_iconAction = menuActions.addAction(this->m_iconAction, CIcons::appAircraft16(), "Display icon", CMenuAction::pathSimulator(), { this, &CShowSimulatorFileMenu::ps_displayIcon });
|
||||||
|
|||||||
@@ -438,9 +438,14 @@ namespace BlackGui
|
|||||||
if (name.isEmpty())
|
if (name.isEmpty())
|
||||||
{
|
{
|
||||||
// create a name
|
// create a name
|
||||||
if (this->getDockWidgetInfoArea()) { name = this->getDockWidgetInfoArea()->windowTitle(); }
|
if (this->getDockWidgetInfoArea())
|
||||||
else if (!windowTitle().isEmpty()) { name = this->windowType(); }
|
{
|
||||||
else { name = this->metaObject()->className(); }
|
name = this->getDockWidgetInfoArea()->windowTitle();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
name = this->metaObject()->className();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!name.endsWith(CFileUtils::jsonAppendix(), Qt::CaseInsensitive))
|
if (!name.endsWith(CFileUtils::jsonAppendix(), Qt::CaseInsensitive))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user