Misc: removed redundant default value (settings), formatting, hide kill button

This commit is contained in:
Klaus Basan
2017-04-10 16:35:03 +02:00
committed by Mathew Sutcliffe
parent 78c618e589
commit 2d56167e65
5 changed files with 8 additions and 12 deletions

View File

@@ -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())
{