mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #485, moved central GUI functionality to sGui
* allow to send status message to main window (from everywhere) * Use sGui::changedStylesheet where possible * message when model is stashed * improved application startup
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b1353cefd4
commit
fb046ae1fb
@@ -13,6 +13,7 @@
|
||||
#include "blackmisc/aviation/liverylist.h"
|
||||
#include "blackmisc/simulation//distributorlist.h"
|
||||
#include "blackgui/shortcut.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackgui/guiutility.h"
|
||||
#include "blackgui/filters/aircraftmodelfilterdialog.h"
|
||||
#include <QHeaderView>
|
||||
@@ -300,11 +301,13 @@ namespace BlackGui
|
||||
{
|
||||
if (!m_menus.testFlag(MenuCanStashModels)) { return; }
|
||||
if (!this->hasSelection()) { return; }
|
||||
emit requestStash(this->selectedObjects());
|
||||
const CAircraftModelList models(this->selectedObjects());
|
||||
emit requestStash(models);
|
||||
if (this->m_stashingClearsSelection)
|
||||
{
|
||||
this->clearSelection();
|
||||
}
|
||||
sGui->displayInStatusBar(CStatusMessage(CStatusMessage::SeverityInfo, "Stashed " + models.getModelStrings(true).join(" ")));
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user