Skip to content

Commit

Permalink
open unsupported files in externel applications
Browse files Browse the repository at this point in the history
  • Loading branch information
Surendrajat committed Jul 18, 2018
1 parent a9a3c50 commit d5f14d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editortabs.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <QDesktopServices>
#include <QFileInfo>
#include <QInputDialog>
#include <QTabBar>
Expand Down Expand Up @@ -226,6 +227,7 @@ void EditorTabs::onFileOpen(const QString &p)
}
else
{
QDesktopServices::openUrl(QUrl(p));
return;
}
_files.insert(p, i = addTab(w, _provider.icon(fi), fi.fileName()));
Expand Down

0 comments on commit d5f14d2

Please sign in to comment.