Skip to content
Snippets Groups Projects
Commit 97c87c97 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#6109: Only display playback button if record file is set and valid

parent 816f4bcb
No related branches found
No related tags found
No related merge requests found
...@@ -277,9 +277,11 @@ update_actions() ...@@ -277,9 +277,11 @@ update_actions()
if (active_calltree == current_calls) if (active_calltree == current_calls)
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM (hangUpWidget), 1); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM (hangUpWidget), 1);
else if(active_calltree == history) else if(active_calltree == history) {
if(selectedCall->_recordfile && (g_strcmp0(selectedCall->_recordfile, "") != 0)) {
gtk_toolbar_insert(GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM(playRecordWidget), 3); gtk_toolbar_insert(GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM(playRecordWidget), 3);
}
}
break; break;
case CALL_STATE_CURRENT: case CALL_STATE_CURRENT:
DEBUG ("UIManager: Call State Current"); DEBUG ("UIManager: Call State Current");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment