mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 21:05:34 +08:00
Misc: removed redundant default value (settings), formatting, hide kill button
This commit is contained in:
committed by
Mathew Sutcliffe
parent
78c618e589
commit
2d56167e65
@@ -108,8 +108,8 @@ namespace BlackGui
|
||||
if (!model.hasFileName()) { return; }
|
||||
if (QFile::exists(model.getFileName()))
|
||||
{
|
||||
const QString url("file:///" + model.getFileName());
|
||||
QDesktopServices::openUrl(QUrl(url));
|
||||
const QUrl url = QUrl::fromLocalFile(model.getFileName());
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace BlackGui
|
||||
if (!mv->hasSingleSelectedRow()) { return; }
|
||||
const CAircraftModel model(mv->selectedObject());
|
||||
if (model.getIconPath().isEmpty()) { return; }
|
||||
CStatusMessage msg;
|
||||
CStatusMessage msg(this);
|
||||
const CPixmap pm(model.loadIcon(msg));
|
||||
if (msg.isSuccess())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user