From 9aeaf4a71b8fcf7be163aafff628e4804a54099a Mon Sep 17 00:00:00 2001 From: Cirilo Bernardo Date: Mon, 18 Jan 2016 08:34:21 +1100 Subject: [PATCH] Prevent unresolved path expansions from appearing as blank entries in 3D path list --- 3d-viewer/3d_cache/dialogs/panel_prev_model.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/3d-viewer/3d_cache/dialogs/panel_prev_model.cpp b/3d-viewer/3d_cache/dialogs/panel_prev_model.cpp index 7427cc051d..c8fd0c0182 100644 --- a/3d-viewer/3d_cache/dialogs/panel_prev_model.cpp +++ b/3d-viewer/3d_cache/dialogs/panel_prev_model.cpp @@ -357,7 +357,9 @@ void PANEL_PREV_3D::updateDirChoiceList( void ) while( sL != eL ) { - cl.push_back( sL->m_pathexp ); + if( !sL->m_pathexp.empty() ) + cl.push_back( sL->m_pathexp ); + ++sL; }