QTreeWidgetItem * /*previousitem*/)
{
QString fullpath = m_dirTreeItems.value(currentitem);
+ statusLine->setText("");
if (fullpath != ""){
cwd(fullpath.toUtf8().data());
fillDirectory();
void restorePage::okButtonPushed()
{
- printf("In restorePage::okButtonPushed\n");
+// printf("In restorePage::okButtonPushed\n");
this->hide();
m_console->write("done");
m_console->notify(true);
void restorePage::fileDoubleClicked(QTreeWidgetItem *item, int column)
{
char cmd[1000];
+ statusLine->setText("");
if (column == 0) { /* mark/unmark */
if (item->data(0, Qt::UserRole).toBool()) {
bsnprintf(cmd, sizeof(cmd), "unmark \"%s\"", item->text(1).toUtf8().data());
if (item) {
directoryWidget->setCurrentItem(item);
}
+ statusLine->setText("");
}
/*
QList<QTreeWidgetItem *> treeItemList = fileWidget->selectedItems();
QTreeWidgetItem *item;
char cmd[1000];
+ int count = 0;
+ statusLine->setText("");
foreach (item, treeItemList) {
+ count++;
bsnprintf(cmd, sizeof(cmd), "mark \"%s\"", item->text(1).toUtf8().data());
item->setIcon(0, QIcon(QString::fromUtf8(":images/check.png")));
m_console->write_dir(cmd);
Dmsg1(100, "cmd=%s\n", cmd);
m_console->discardToPrompt();
}
+ if (count == 0) {
+ mainWin->set_status("Nothing selected, nothing done");
+ statusLine->setText("Nothing selected, nothing done");
+ }
+
}
/*
QList<QTreeWidgetItem *> treeItemList = fileWidget->selectedItems();
QTreeWidgetItem *item;
char cmd[1000];
+ int count = 0;
+ statusLine->setText("");
foreach (item, treeItemList) {
+ count++;
bsnprintf(cmd, sizeof(cmd), "unmark \"%s\"", item->text(1).toUtf8().data());
item->setIcon(0, QIcon(QString::fromUtf8(":images/unchecked.png")));
m_console->write_dir(cmd);
Dmsg1(100, "cmd=%s\n", cmd);
m_console->discardToPrompt();
}
+ if (count == 0) {
+ mainWin->set_status("Nothing selected, nothing done");
+ statusLine->setText("Nothing selected, nothing done");
+ }
+
}
/*
int stat;
char cd_cmd[MAXSTRING];
+ statusLine->setText("");
bsnprintf(cd_cmd, sizeof(cd_cmd), "cd \"%s\"", dir);
Dmsg2(100, "dir=%s cmd=%s\n", dir, cd_cmd);
m_console->write_dir(cd_cmd);