summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostyantyn Ovechko <fastinetserver@gmail.com>2010-08-11 23:02:54 +0300
committerKostyantyn Ovechko <fastinetserver@gmail.com>2010-08-11 23:02:54 +0300
commit1c012ed4604ec7cb4476eba447751fd5314a9fcb (patch)
treecf8c1808df6879c2a925585f97e4ad89eb58e193 /segget/distfile.cpp
parentFix warnings: unused return value. (diff)
downloadidfetch-1c012ed4604ec7cb4476eba447751fd5314a9fcb.tar.gz
idfetch-1c012ed4604ec7cb4476eba447751fd5314a9fcb.tar.bz2
idfetch-1c012ed4604ec7cb4476eba447751fd5314a9fcb.zip
Add [colors] section to tuiclient.conf file
[colors] Define color scheme for tuiclient. Avaible colors are: COLOR_BLACK COLOR_RED COLOR_GREEN COLOR_YELLOW COLOR_BLUE COLOR_MAGENTA COLOR_CYAN COLOR_WHITE Defaults: when tuiclient connected to seggetd: color_distfile_added_connected_fg=COLOR_WHITE color_distfile_added_connected_bg=COLOR_BLACK color_distfile_waiting_connected_fg=COLOR_BLUE color_distfile_waiting_connected_bg=COLOR_BLACK color_distfile_script_rejected_connected_fg=COLOR_YELLOW color_distfile_script_rejected_connected_bg=COLOR_BLACK color_distfile_downloading_connected_fg=COLOR_CYAN color_distfile_downloading_connected_bg=COLOR_BLACK color_distfile_downloaded_connected_fg=COLOR_GREEN color_distfile_downloaded_connected_bg=COLOR_BLACK color_distfile_failed_connected_fg=COLOR_RED color_distfile_failed_connected_bg=COLOR_BLACK color_distfiles_window_connected_fg=COLOR_WHITE color_distfiles_window_connected_bg=COLOR_BLACK color_scroll_window_connected_fg=COLOR_GREEN color_scroll_window_connected_bg=COLOR_BLACK color_downloads_connected_fg=COLOR_WHITE color_downloads_connected_bg=COLOR_BLACK color_info_connected_fg=COLOR_BLACK color_info_connected_bg=COLOR_CYAN color_status_connected_fg=COLOR_GREEN color_status_connected_bg=COLOR_BLACK when tuiclient disconnected from seggetd: color_distfile_added_disconnected_fg=COLOR_WHITE color_distfile_added_disconnected_bg=COLOR_BLACK color_distfile_waiting_disconnected_fg=COLOR_WHITE color_distfile_waiting_disconnected_bg=COLOR_BLACK color_distfile_script_rejected_disconnected_fg=COLOR_WHITE color_distfile_script_rejected_disconnected_bg=COLOR_BLACK color_distfile_downloading_disconnected_fg=COLOR_WHITE color_distfile_downloading_disconnected_bg=COLOR_BLACK color_distfile_downloaded_disconnected_fg=COLOR_WHITE color_distfile_downloaded_disconnected_bg=COLOR_BLACK color_distfile_failed_disconnected_fg=COLOR_WHITE color_distfile_failed_disconnected_bg=COLOR_BLACK color_distfiles_window_disconnected_fg=COLOR_WHITE color_distfiles_window_disconnected_bg=COLOR_BLACK color_scroll_window_disconnected_fg=COLOR_WHITE color_scroll_window_disconnected_bg=COLOR_BLACK color_downloads_disconnected_fg=COLOR_BLACK color_downloads_disconnected_bg=COLOR_WHITE color_info_disconnected_fg=COLOR_WHITE color_info_disconnected_bg=COLOR_BLACK color_status_disconnected_fg=COLOR_BLACK color_status_disconnected_bg=COLOR_RED
Diffstat (limited to 'segget/distfile.cpp')
-rw-r--r--segget/distfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/segget/distfile.cpp b/segget/distfile.cpp
index b48e50d..883532a 100644
--- a/segget/distfile.cpp
+++ b/segget/distfile.cpp
@@ -865,7 +865,7 @@ int Tdistfile::combine_segments(){
string distfile_path=settings.distfiles_dir+"/"+name;
try{
distfile_file.open(distfile_path.c_str(),ofstream::binary|ios::trunc);
- if (distfile_file==0){
+ if (! distfile_file.is_open()){
error_log("Error: distfile.cpp: combine_segments(): opening distfile "+distfile_path+" for writing");
error_log("....Check if folder "+settings.distfiles_dir+" exists and seggetd has permissions to write into it.");
}