mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
window_set_name() - when setting it to "", set it NULL instead.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2752 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8a7bc3b667
commit
b7583c188e
@ -195,7 +195,7 @@ void window_set_refnum(WINDOW_REC *window, int refnum)
|
|||||||
void window_set_name(WINDOW_REC *window, const char *name)
|
void window_set_name(WINDOW_REC *window, const char *name)
|
||||||
{
|
{
|
||||||
g_free_not_null(window->name);
|
g_free_not_null(window->name);
|
||||||
window->name = g_strdup(name);
|
window->name = name == NULL || *name == '\0' ? NULL : g_strdup(name);
|
||||||
|
|
||||||
signal_emit("window name changed", 1, window);
|
signal_emit("window name changed", 1, window);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user