aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-20 15:47:01 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-20 15:47:01 +0200
commit9faf6d26127d3799f9b559c695661e4ffa112325 (patch)
tree3760a58d659d1b6190efadaddaafe06bed91c9dc /lib/AdminPanel
parent760171fda4b1bbd12b35841a930f0a21511c71d2 (diff)
downloadmanatools-9faf6d26127d3799f9b559c695661e4ffa112325.tar
manatools-9faf6d26127d3799f9b559c695661e4ffa112325.tar.gz
manatools-9faf6d26127d3799f9b559c695661e4ffa112325.tar.bz2
manatools-9faf6d26127d3799f9b559c695661e4ffa112325.tar.xz
manatools-9faf6d26127d3799f9b559c695661e4ffa112325.zip
- Selected first line after list change
- block event during list change
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r--lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
index 9c1ba11f..df0d4e1c 100644
--- a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
+++ b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm
@@ -1595,6 +1595,7 @@ sub mainwindow() {
}
elsif ($widget == $upButton) {
yui::YUI::app()->busyCursor();
+ yui::YUI::ui()->blockEvents();
$dialog->startMultipleChanges();
my $row = upwards_callback($mirrorTbl);
@@ -1606,10 +1607,12 @@ sub mainwindow() {
$dialog->recalcLayout();
$dialog->doneMultipleChanges();
+ yui::YUI::ui()->unblockEvents();
yui::YUI::app()->normalCursor();
}
elsif ($widget == $downButton) {
yui::YUI::app()->busyCursor();
+ yui::YUI::ui()->blockEvents();
$dialog->startMultipleChanges();
my $row = downwards_callback($mirrorTbl);
@@ -1621,6 +1624,7 @@ sub mainwindow() {
$dialog->recalcLayout();
$dialog->doneMultipleChanges();
+ yui::YUI::ui()->unblockEvents();
yui::YUI::app()->normalCursor();
}
elsif ($widget == $edtButton) {
@@ -1628,6 +1632,8 @@ sub mainwindow() {
if ($item && edit_callback($mirrorTbl) ) {
my $row = $item->index();
yui::YUI::app()->busyCursor();
+ yui::YUI::ui()->blockEvents();
+
$dialog->startMultipleChanges();
$mirrorTbl->deleteAllItems();
@@ -1650,6 +1656,7 @@ sub mainwindow() {
$dialog->recalcLayout();
$dialog->doneMultipleChanges();
+ yui::YUI::ui()->unblockEvents();
yui::YUI::app()->normalCursor();
}
}
@@ -1676,14 +1683,18 @@ sub mainwindow() {
}
if ($changed) {
yui::YUI::app()->busyCursor();
+ yui::YUI::ui()->blockEvents();
+
$dialog->startMultipleChanges();
$mirrorTbl->deleteAllItems();
my $itemCollection = readMedia();
+ selectRow($itemCollection, 0); #default selection
$mirrorTbl->addItems($itemCollection);
$dialog->recalcLayout();
$dialog->doneMultipleChanges();
+ yui::YUI::ui()->unblockEvents();
yui::YUI::app()->normalCursor();
}
}