Re-enabling curses support.
This commit is contained in:
parent
a033bf3972
commit
33dbd7acf8
|
@ -46,12 +46,12 @@ IF (WIN32)
|
||||||
ENDIF(NOT UNIX)
|
ENDIF(NOT UNIX)
|
||||||
ENDIF (WIN32)
|
ENDIF (WIN32)
|
||||||
|
|
||||||
#IF (UNIX)
|
IF (UNIX)
|
||||||
# INCLUDE (${CMAKE_ROOT}/Modules/FindCurses.cmake)
|
INCLUDE (${CMAKE_ROOT}/Modules/FindCurses.cmake)
|
||||||
# IF (CURSES_LIBRARY)
|
IF (CURSES_LIBRARY)
|
||||||
# SUBDIRS(CursesDialog)
|
SUBDIRS(CursesDialog)
|
||||||
# ENDIF (CURSES_LIBRARY)
|
ENDIF (CURSES_LIBRARY)
|
||||||
#ENDIF (UNIX)
|
ENDIF (UNIX)
|
||||||
|
|
||||||
SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx)
|
SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx)
|
||||||
|
|
||||||
|
|
|
@ -278,7 +278,8 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
|
||||||
// copy from the list box to the cache manager
|
// copy from the list box to the cache manager
|
||||||
void cmCursesMainForm::FillCacheManagerFromUI()
|
void cmCursesMainForm::FillCacheManagerFromUI()
|
||||||
{
|
{
|
||||||
|
std::string tmpString;
|
||||||
|
|
||||||
cmCacheManager::GetInstance()->GetCacheMap();
|
cmCacheManager::GetInstance()->GetCacheMap();
|
||||||
int size = m_Entries->size();
|
int size = m_Entries->size();
|
||||||
for(int i=0; i < size; i++)
|
for(int i=0; i < size; i++)
|
||||||
|
@ -288,7 +289,9 @@ void cmCursesMainForm::FillCacheManagerFromUI()
|
||||||
(*m_Entries)[i]->m_Key.c_str());
|
(*m_Entries)[i]->m_Key.c_str());
|
||||||
if (entry)
|
if (entry)
|
||||||
{
|
{
|
||||||
entry->m_Value = (*m_Entries)[i]->m_Entry->GetValue();
|
tmpString = (*m_Entries)[i]->m_Entry->GetValue();
|
||||||
|
// Remove trailing spaces
|
||||||
|
entry->m_Value = tmpString.substr(0,tmpString.find_last_not_of(" ")+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue