mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-25 08:56:00 +02:00
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compiler warnings in 'utils/rdsinglestart/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
f507d55955
commit
024a0cd78b
@ -25022,3 +25022,5 @@
|
||||
* Cleaned up compiler warnings in 'utils/rdimport/'.
|
||||
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compiler warnings in 'utils/rdselect_helper/'.
|
||||
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compiler warnings in 'utils/rdsinglestart/'.
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Start a program so as to allow only a single instance.
|
||||
//
|
||||
// (C) Copyright 2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2022-2025 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -42,7 +42,7 @@ MainObject::MainObject(QObject *parent)
|
||||
}
|
||||
for(unsigned i=0;i<(cmd->keys()-1);i++) {
|
||||
}
|
||||
QStringList f0=cmd->key(cmd->keys()-1).split("/",QString::SkipEmptyParts);
|
||||
QStringList f0=cmd->key(cmd->keys()-1).split("/",Qt::SkipEmptyParts);
|
||||
QString program=f0.last().trimmed();
|
||||
|
||||
//
|
||||
@ -70,9 +70,9 @@ MainObject::MainObject(QObject *parent)
|
||||
}
|
||||
bool found=false;
|
||||
f0=QString::fromUtf8(proc->readAllStandardOutput()).
|
||||
split("\n",QString::SkipEmptyParts);
|
||||
split("\n",Qt::SkipEmptyParts);
|
||||
for(int i=0;i<f0.size();i++) {
|
||||
QStringList f1=f0.at(i).split(" ",QString::SkipEmptyParts);
|
||||
QStringList f1=f0.at(i).split(" ",Qt::SkipEmptyParts);
|
||||
if(f1.size()>=4) {
|
||||
if(f1.at(3).trimmed().toLower()==program) {
|
||||
Raise(f1.at(0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user