mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 22:58:28 +02:00
netfs_setup: simplify hintbox calls
Origin commit data
------------------
Branch: ni/coolstream
Commit: a6b82ac29c
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
Origin message was:
------------------
- netfs_setup: simplify hintbox calls
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -439,8 +439,8 @@ int CNETFSMountGui::exec( CMenuTarget* parent, const std::string & actionKey )
|
|||||||
perror("autofs failed");
|
perror("autofs failed");
|
||||||
|
|
||||||
//FIXME please wait ...
|
//FIXME please wait ...
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_NETFS_AUTOMOUNT_HEAD,g_Locale->getText(LOCALE_AUDIOPLAYER_RECEIVING_LIST));
|
CHintBox hintBox(LOCALE_NETFS_AUTOMOUNT_HEAD,g_Locale->getText(LOCALE_AUDIOPLAYER_RECEIVING_LIST));
|
||||||
hintBox->paint();
|
hintBox.paint();
|
||||||
sleep(3); //give automounter a few seconds
|
sleep(3); //give automounter a few seconds
|
||||||
|
|
||||||
for(int i=0 ; i < NETFS_NR_OF_ENTRIES ; i++)
|
for(int i=0 ; i < NETFS_NR_OF_ENTRIES ; i++)
|
||||||
@@ -460,8 +460,7 @@ int CNETFSMountGui::exec( CMenuTarget* parent, const std::string & actionKey )
|
|||||||
mountMenuEntry[i]->iconName = NEUTRINO_ICON_NOT_MOUNTED;
|
mountMenuEntry[i]->iconName = NEUTRINO_ICON_NOT_MOUNTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hintBox->hide();
|
hintBox.hide();
|
||||||
delete hintBox;
|
|
||||||
}
|
}
|
||||||
returnval = menu_return::RETURN_REPAINT;
|
returnval = menu_return::RETURN_REPAINT;
|
||||||
}
|
}
|
||||||
@@ -511,8 +510,8 @@ int CNETFSMountGui::menu(int mt)
|
|||||||
mountMenuW.addItem(GenericMenuSeparatorLine);
|
mountMenuW.addItem(GenericMenuSeparatorLine);
|
||||||
|
|
||||||
//FIXME please wait ...
|
//FIXME please wait ...
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_NETFS_AUTOMOUNT_HEAD,g_Locale->getText(LOCALE_AUDIOPLAYER_RECEIVING_LIST));
|
CHintBox hintBox(LOCALE_NETFS_AUTOMOUNT_HEAD,g_Locale->getText(LOCALE_AUDIOPLAYER_RECEIVING_LIST));
|
||||||
hintBox->paint();
|
hintBox.paint();
|
||||||
|
|
||||||
for(int i=0 ; i < NETFS_NR_OF_ENTRIES ; i++)
|
for(int i=0 ; i < NETFS_NR_OF_ENTRIES ; i++)
|
||||||
{
|
{
|
||||||
@@ -542,8 +541,7 @@ int CNETFSMountGui::menu(int mt)
|
|||||||
}
|
}
|
||||||
mountMenuW.addItem(mountMenuEntry[i]);
|
mountMenuW.addItem(mountMenuEntry[i]);
|
||||||
}
|
}
|
||||||
hintBox->hide();
|
hintBox.hide();
|
||||||
delete hintBox;
|
|
||||||
|
|
||||||
int ret=mountMenuW.exec(this,"");
|
int ret=mountMenuW.exec(this,"");
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user