summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-06-09 20:40:13 +0200
committerTannin <devnull@localhost>2015-06-09 20:40:13 +0200
commitd7790cd717639bd38a626aef3735326a39808684 (patch)
tree59986a0ad09eaf1d773ee0e60328c73d4df7f576 /src/mainwindow.cpp
parent84d632af6af725ad4c5a5ef9bc5a891d00b252b5 (diff)
incorrect use of "complete" file suffixes
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 952c3178..7c0804f8 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3468,7 +3468,7 @@ void MainWindow::writeDataToFile()
int MainWindow::getBinaryExecuteInfo(const QFileInfo &targetInfo, QFileInfo &binaryInfo, QString &arguments)
{
- QString extension = targetInfo.completeSuffix();
+ QString extension = targetInfo.suffix();
if ((extension.compare("cmd", Qt::CaseInsensitive) == 0) ||
(extension.compare("com", Qt::CaseInsensitive) == 0) ||
(extension.compare("bat", Qt::CaseInsensitive) == 0)) {
@@ -3723,7 +3723,7 @@ void MainWindow::on_dataTree_customContextMenuRequested(const QPoint &pos)
menu.addAction(tr("Add as Executable"), this, SLOT(addAsExecutable()));
QString fileName = m_ContextItem->text(0);
- if (m_PluginContainer.previewGenerator().previewSupported(QFileInfo(fileName).completeSuffix())) {
+ if (m_PluginContainer.previewGenerator().previewSupported(QFileInfo(fileName).suffix())) {
menu.addAction(tr("Preview"), this, SLOT(previewDataFile()));
}