Browse Source

it2.fileInfo().isFile()

master
probonopd 8 years ago
committed by GitHub
parent
commit
c21b17174d
  1. 2
      linuxdeployqt/main.cpp

2
linuxdeployqt/main.cpp

@ -117,7 +117,7 @@ int main(int argc, char **argv)
QDirIterator it2(directoryToBeSearched, QDirIterator::Subdirectories); QDirIterator it2(directoryToBeSearched, QDirIterator::Subdirectories);
while (it2.hasNext()) { while (it2.hasNext()) {
it2.next(); it2.next();
if((it2.fileName() == desktopExecEntry) && (it.fileInfo().isFile()) && (it2.fileInfo().isExecutable())){ if((it2.fileName() == desktopExecEntry) && (it2.fileInfo().isFile()) && (it2.fileInfo().isExecutable())){
qDebug() << "Found binary from desktop file:" << it2.fileInfo().canonicalFilePath(); qDebug() << "Found binary from desktop file:" << it2.fileInfo().canonicalFilePath();
appBinaryPath = it2.fileInfo().absoluteFilePath(); appBinaryPath = it2.fileInfo().absoluteFilePath();
break; break;

Loading…
Cancel
Save