mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 01:54:24 +03:00
(add2panelize_cmd): minor optimization and type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
5e81b4be89
commit
1b041ad484
@ -259,21 +259,16 @@ add2panelize (char *label, char *command)
|
||||
static void
|
||||
add2panelize_cmd (void)
|
||||
{
|
||||
if (pname->buffer != NULL && *pname->buffer != '\0')
|
||||
{
|
||||
char *label;
|
||||
|
||||
if (pname->buffer && (*pname->buffer))
|
||||
{
|
||||
label = input_dialog (_("Add to external panelize"),
|
||||
_("Enter command label:"), MC_HISTORY_FM_PANELIZE_ADD, "",
|
||||
INPUT_COMPLETE_NONE);
|
||||
if (!label)
|
||||
return;
|
||||
if (!*label)
|
||||
{
|
||||
if (label == NULL || *label == '\0')
|
||||
g_free (label);
|
||||
return;
|
||||
}
|
||||
|
||||
else
|
||||
add2panelize (label, g_strdup (pname->buffer));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user