Skip to content

Commit

Permalink
Fix building without GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Mar 21, 2017
1 parent b34a0e6 commit fe23039
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

using namespace std;
using namespace std::placeholders;
using namespace ConversionUtilities;
using namespace ApplicationUtilities;

namespace Cli {
Expand Down Expand Up @@ -229,7 +228,7 @@ int main(int argc, char *argv[])
parser.parseArgs(argc, argv);
if(qtConfigArgs.areQtGuiArgsPresent()) {
#ifdef GUI_QTWIDGETS
return QtGui::runWidgetsGui(argc, argv, qtConfigArgs, defaultFileArg.isPresent() && !defaultFileArg.values().empty() ? fromNativeFileName(defaultFileArg.values().front()) : QString(), renamingUtilityArg.isPresent());
return QtGui::runWidgetsGui(argc, argv, qtConfigArgs, defaultFileArg.isPresent() && !defaultFileArg.values().empty() ? ConversionUtilities::fromNativeFileName(defaultFileArg.values().front()) : QString(), renamingUtilityArg.isPresent());
#else
CMD_UTILS_START_CONSOLE;
cerr << "Application has not been build with Qt widgets GUI support." << endl;
Expand Down

0 comments on commit fe23039

Please sign in to comment.