2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

fixed new photoviewer for linux

This commit is contained in:
John Preston
2014-10-17 17:24:17 +04:00
parent f07606a0ce
commit c81beeb023
2 changed files with 10 additions and 8 deletions

View File

@@ -294,9 +294,11 @@ QRect psDesktopRect() {
}
void psShowOverAll(QWidget *w, bool canFocus) {
w->show();
}
void psBringToBack(QWidget *w) {
w->hide();
}
void PsMainWindow::psActivateNotify(NotifyWindow *w) {
@@ -956,8 +958,9 @@ void psOpenFile(const QString &name, bool openWith) {
}
void psShowInFolder(const QString &name) {
QDesktopServices::openUrl(QFileInfo(name).absoluteDir().absolutePath());
// system(("nautilus " + QFileInfo(name).absoluteDir().absolutePath()).toUtf8().constData());
// QDesktopServices::openUrl(QFileInfo(name).absoluteDir().absolutePath());
App::wnd()->layerHidden();
system(("nautilus \"" + QFileInfo(name).absoluteDir().absolutePath() + "\"").toUtf8().constData());
//objc_showInFinder(name, QFileInfo(name).absolutePath());
}