mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 16:20:14 +01:00
2021-02-24 Fred Gleason <fredg@paravelsystems.com>
* Updated build system to use Qt5 instead of Qt4. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -32,7 +32,7 @@ MainObject::MainObject(QObject *parent)
|
||||
{
|
||||
QString err_msg;
|
||||
|
||||
int obj_start=qApp->argc();
|
||||
int obj_start=qApp->arguments().size();
|
||||
del_carts=false;
|
||||
del_logs=false;
|
||||
del_verbose=false;
|
||||
@@ -96,8 +96,8 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
// Read Object List
|
||||
//
|
||||
for(int i=obj_start;i<qApp->argc();i++) {
|
||||
del_obj_ids.push_back(qApp->argv()[i]);
|
||||
for(int i=obj_start;i<qApp->arguments().size();i++) {
|
||||
del_obj_ids.push_back(qApp->arguments().at(i));
|
||||
if((del_obj_ids.back()=="--carts")||(del_obj_ids.back()=="--logs")) {
|
||||
fprintf(stderr,
|
||||
"rddelete: --carts and --logs switches are mutually exclusive\n");
|
||||
|
||||
Reference in New Issue
Block a user