|
|
|
@ -638,13 +638,12 @@ void lc::MainWindow::on_PBViewDesktopFullControl_clicked()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Session tab functions */
|
|
|
|
/* Session tab functions */
|
|
|
|
|
|
|
|
|
|
|
|
void lc::MainWindow::on_PBStartzLeaf_clicked() {
|
|
|
|
void lc::MainWindow::on_PBStartzLeaf_clicked() {
|
|
|
|
QModelIndexList activated_items = ui->TVClients->selectionModel()->selectedIndexes();
|
|
|
|
QModelIndexList activated_items = ui->TVClients->selectionModel()->selectedIndexes();
|
|
|
|
for ( QModelIndexList::ConstIterator it = activated_items.cbegin(); it != activated_items.cend(); ++it ) {
|
|
|
|
for ( QModelIndexList::ConstIterator it = activated_items.cbegin(); it != activated_items.cend(); ++it ) {
|
|
|
|
if ( ( *it ).data( Qt::DisplayRole ).type() != 0 ) {
|
|
|
|
if ( ( *it ).data( Qt::DisplayRole ).type() != 0 ) {
|
|
|
|
Client *client = static_cast< Client* >( ( *it ).data( Qt::UserRole ).value< void * >() );
|
|
|
|
Client *client = static_cast< Client* >( ( *it ).data( Qt::UserRole ).value< void * >() );
|
|
|
|
client->StartZLeaf( nullptr );
|
|
|
|
client->StartZLeaf( nullptr, ui->LEzLeafCommandline->text() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|