From 56f8876e57f5d3c3dd0a384850bb77bcff116e0a Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Tue, 8 Apr 2014 12:17:53 +0200 Subject: [beamergui] Removed the need of a configfile in beamergui, because it is handled in Xsetup stage now. --- src/main.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 0a54d52..6a5fa7c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,18 +8,18 @@ int main(int argc, char *argv[]) { - if (argc != 2) { - std::cout << "Usage: " << argv[0] << " " << std::endl; - } else { - // Check if file exists - std::ifstream f(argv[1]); - if (!f) { - std::cerr << "The config file does not exist." << std::endl; - exit(1); - } - else - f.close(); - } + //if (argc != 2) { + // std::cout << "Usage: " << argv[0] << " " << std::endl; + //} else { + // // Check if file exists + // std::ifstream f(argv[1]); + // if (!f) { + // std::cerr << "The config file does not exist." << std::endl; + // exit(1); + // } + // else + // f.close(); + //} QApplication a(argc, argv); Widget w; -- cgit v1.2.3-55-g7522