mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-23 08:01:41 +02:00
2017-10-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the 'RDStation::create()' method that caused JACK client setting to fail to be copied to new host configurations. * Fixed a bug in the 'RDStation::removed()' method that caused JACK client setting to fail to be cleaned up when deleting host configurations.
This commit is contained in:
parent
939cd03a30
commit
a18a97b5fb
@ -16201,3 +16201,9 @@
|
||||
2017-10-25 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in rdadmin(1) that caused a segfault when opening the
|
||||
'Edit Host' dialog.
|
||||
2017-10-25 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in the 'RDStation::create()' method that caused JACK
|
||||
client setting to fail to be copied to new host configurations.
|
||||
* Fixed a bug in the 'RDStation::removed()' method that caused JACK
|
||||
client setting to fail to be cleaned up when deleting host
|
||||
configurations.
|
||||
|
@ -1712,6 +1712,25 @@ bool RDStation::create(const QString &name,QString *err_msg,
|
||||
delete q1;
|
||||
}
|
||||
delete q;
|
||||
|
||||
//
|
||||
// Clone JACK Clients
|
||||
//
|
||||
sql=QString("select ")+
|
||||
"DESCRIPTION,"+ // 00
|
||||
"COMMAND_LINE "+ // 01
|
||||
"from JACK_CLIENTS where "+
|
||||
"STATION_NAME=\""+RDEscapeString(exemplar)+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
sql=QString("insert into JACK_CLIENTS set ")+
|
||||
"STATION_NAME=\""+RDEscapeString(name)+"\","+
|
||||
"DESCRIPTION=\""+RDEscapeString(q->value(0).toString())+"\","+
|
||||
"COMMAND_LINE=\""+RDEscapeString(q->value(1).toString())+"\"";
|
||||
q1=new RDSqlQuery(sql);
|
||||
delete q1;
|
||||
}
|
||||
delete q;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -1863,6 +1882,11 @@ void RDStation::remove(const QString &name)
|
||||
"STATION_NAME=\""+RDEscapeString(name)+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
sql=QString("delete from JACK_CLIENTS where ")+
|
||||
"STATION_NAME=\""+RDEscapeString(name)+"\"";
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user