2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Add MTP::Sender to replace RPCSender some day.

Also use c++1z language standard in Xcode build.
Also treat warnings as errors.
This commit is contained in:
John Preston
2017-03-22 18:38:40 +03:00
parent 7fcc5d649c
commit e9ec09b91a
15 changed files with 449 additions and 78 deletions

View File

@@ -62,7 +62,10 @@ QByteArray EscapeShell(const QByteArray &content) {
void UnsafeShowInFolder(const QString &filepath) {
Ui::hideLayer(true);
system(("xdg-open " + internal::EscapeShell(QFile::encodeName(QFileInfo(filepath).absoluteDir().absolutePath()))).constData());
auto result = system(("xdg-open " + internal::EscapeShell(QFile::encodeName(QFileInfo(filepath).absoluteDir().absolutePath()))).constData());
if (result) {
LOG(("Failed to launch xdg-open"));
}
}
} // namespace File