Changeset 257
- Timestamp:
- 07/02/09 19:06:46 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
storage/mysql_storage.cpp (modified) (2 diffs)
-
storage/sqlite_storage.cpp (modified) (2 diffs)
-
version.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/storage/mysql_storage.cpp
r256 r257 2099 2099 int id = query_select_unread_child->value(0).toInt(); 2100 2100 2101 // если число топиков ограничено лимитом, то возможна ситуация, 2102 // когда непрочитанные топики не будут отображаться (см. #49) 2103 bool found = false; 2104 2101 2105 for (int i = 0; i < list.count(); i++) 2102 2106 if (list[i] == id) 2103 2107 { 2108 found = true; 2109 2104 2110 list.move(i, 0); 2111 2105 2112 break; 2106 2113 } 2114 2115 if (found == false) 2116 list.prepend(id); 2107 2117 } 2108 2118 … … 2136 2146 int id = query_select_unread_topic->value(0).toInt(); 2137 2147 2148 // если число топиков ограничено лимитом, то возможна ситуация, 2149 // когда непрочитанные топики не будут отображаться (см. #49) 2150 bool found = false; 2151 2138 2152 for (int i = 0; i < list.count(); i++) 2139 2153 if (list[i] == id) 2140 2154 { 2155 found = true; 2156 2141 2157 list.move(i, 0); 2158 2142 2159 break; 2143 2160 } 2161 2162 if (found == false) 2163 list.prepend(id); 2144 2164 } 2145 2165 -
trunk/storage/sqlite_storage.cpp
r256 r257 2065 2065 int id = query_select_unread_child->value(0).toInt(); 2066 2066 2067 // если число топиков ограничено лимитом, то возможна ситуация, 2068 // когда непрочитанные топики не будут отображаться (см. #49) 2069 bool found = false; 2070 2067 2071 for (int i = 0; i < list.count(); i++) 2068 2072 if (list[i] == id) 2069 2073 { 2074 found = true; 2075 2070 2076 list.move(i, 0); 2077 2071 2078 break; 2072 2079 } 2080 2081 if (found == false) 2082 list.prepend(id); 2073 2083 } 2074 2084 … … 2102 2112 int id = query_select_unread_topic->value(0).toInt(); 2103 2113 2114 bool found = false; 2115 2104 2116 for (int i = 0; i < list.count(); i++) 2105 2117 if (list[i] == id) 2106 2118 { 2119 found = true; 2120 2107 2121 list.move(i, 0); 2122 2108 2123 break; 2109 2124 } 2125 2126 if (found == false) 2127 list.prepend(id); 2110 2128 } 2111 2129 -
trunk/version.h
r256 r257 20 20 * \brief Дата билда (заменяется автоматически при каждом билде в version.h, что и приводит к смене номера ревизии) 21 21 */ 22 #define AVALON_DATE "Чтв Июл 2 1 8:38:02MSD 2009"22 #define AVALON_DATE "Чтв Июл 2 19:04:47 MSD 2009" 23 23 24 24 #endif
Note: See TracChangeset
for help on using the changeset viewer.
